-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
253 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Created by .ignore support plugin (hsz.mobi) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,58 @@ | ||
CREATE TABLE `{question}` ( | ||
`id` int(10) unsigned NOT NULL auto_increment, | ||
`type` enum('Q','A') NOT NULL default 'Q', | ||
`pid` int(10) unsigned NOT NULL default '0', | ||
`answer` smallint(5) unsigned NOT NULL default '0', | ||
`uid` int(10) unsigned NOT NULL default '0', | ||
`point` int(10) NOT NULL default '0', | ||
`count` int(10) unsigned NOT NULL default '0', | ||
`favorite` int(10) unsigned NOT NULL default '0', | ||
`hits` int(10) unsigned NOT NULL default '0', | ||
`status` tinyint(1) unsigned NOT NULL default '0', | ||
`time_create` int(10) unsigned NOT NULL default '0', | ||
`time_update` int(10) unsigned NOT NULL default '0', | ||
`title` varchar(255) NOT NULL default '', | ||
`slug` varchar(255) NOT NULL default '', | ||
`content` text, | ||
`tag` varchar(255) NOT NULL default '', | ||
`seo_title` varchar(255) NOT NULL default '', | ||
`seo_keywords` varchar(255) NOT NULL default '', | ||
`seo_description` varchar(255) NOT NULL default '', | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `slug` (`slug`), | ||
KEY `title` (`title`), | ||
KEY `status` (`status`), | ||
KEY `time_create` (`time_create`), | ||
KEY `hits` (`hits`), | ||
KEY `point` (`point`), | ||
KEY `uid` (`uid`), | ||
KEY `question_list` (`status`, `type`), | ||
KEY `answer_list` (`status`, `pid`, `type`), | ||
KEY `submit_list` (`status`, `type`, `title`), | ||
KEY `author_list` (`status`, `type`, `uid`), | ||
KEY `order_id` (`time_create`, `id`), | ||
KEY `order_point` (`point`, `id`), | ||
KEY `order_hits` (`hits`, `id`), | ||
KEY `order_answer` (`answer`, `id`) | ||
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, | ||
`type` ENUM ('Q', 'A') NOT NULL DEFAULT 'Q', | ||
`question_id` INT(10) UNSIGNED NOT NULL DEFAULT '0', | ||
`project_id` INT(10) UNSIGNED NOT NULL DEFAULT '0', | ||
`answer` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0', | ||
`uid` INT(10) UNSIGNED NOT NULL DEFAULT '0', | ||
`point` INT(10) NOT NULL DEFAULT '0', | ||
`count` INT(10) UNSIGNED NOT NULL DEFAULT '0', | ||
`favorite` INT(10) UNSIGNED NOT NULL DEFAULT '0', | ||
`hits` INT(10) UNSIGNED NOT NULL DEFAULT '0', | ||
`status` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', | ||
`time_create` INT(10) UNSIGNED NOT NULL DEFAULT '0', | ||
`time_update` INT(10) UNSIGNED NOT NULL DEFAULT '0', | ||
`title` VARCHAR(255) NOT NULL DEFAULT '', | ||
`slug` VARCHAR(255) NOT NULL DEFAULT '', | ||
`text_description` TEXT, | ||
`tag` VARCHAR(255) NOT NULL DEFAULT '', | ||
`seo_title` VARCHAR(255) NOT NULL DEFAULT '', | ||
`seo_keywords` VARCHAR(255) NOT NULL DEFAULT '', | ||
`seo_description` VARCHAR(255) NOT NULL DEFAULT '', | ||
`main_image` INT(10) UNSIGNED NOT NULL DEFAULT '0', | ||
`additional_images` TEXT, | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `slug` (`slug`), | ||
KEY `question_id` (`question_id`), | ||
KEY `title` (`title`), | ||
KEY `status` (`status`), | ||
KEY `time_create` (`time_create`), | ||
KEY `hits` (`hits`), | ||
KEY `point` (`point`), | ||
KEY `uid` (`uid`), | ||
KEY `question_list` (`status`, `type`), | ||
KEY `answer_list` (`status`, `question_id`, `type`), | ||
KEY `submit_list` (`status`, `type`, `title`), | ||
KEY `author_list` (`status`, `type`, `uid`), | ||
KEY `order_id` (`time_create`, `id`), | ||
KEY `order_point` (`point`, `id`), | ||
KEY `order_hits` (`hits`, `id`), | ||
KEY `order_answer` (`answer`, `id`) | ||
); | ||
|
||
CREATE TABLE `{project}` ( | ||
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, | ||
`title` VARCHAR(255) NOT NULL DEFAULT '', | ||
`slug` VARCHAR(255) NOT NULL DEFAULT '', | ||
`text_description` TEXT, | ||
`time_create` INT(10) UNSIGNED NOT NULL DEFAULT '0', | ||
`time_update` INT(10) UNSIGNED NOT NULL DEFAULT '0', | ||
`status` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', | ||
`seo_title` VARCHAR(255) NOT NULL DEFAULT '', | ||
`seo_keywords` VARCHAR(255) NOT NULL DEFAULT '', | ||
`seo_description` VARCHAR(255) NOT NULL DEFAULT '', | ||
PRIMARY KEY (`id`), | ||
KEY `title` (`title`), | ||
KEY `status` (`status`), | ||
KEY `time_create` (`time_create`) | ||
); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/** | ||
* Pi Engine (http://pialog.org) | ||
* | ||
* @link http://code.pialog.org for the Pi Engine source repository | ||
* @copyright Copyright (c) Pi Engine http://pialog.org | ||
* @license http://pialog.org/license.txt New BSD License | ||
*/ | ||
|
||
/** | ||
* @author Hossein Azizabadi <[email protected]> | ||
*/ | ||
namespace Module\Ask\Controller\Admin; | ||
|
||
use Pi; | ||
use Pi\Mvc\Controller\ActionController; | ||
|
||
class ProjectController extends ActionController | ||
{ | ||
public function indexAction() | ||
{ | ||
$this->view()->setTemplate('project-index'); | ||
} | ||
|
||
public function updateAction() | ||
{ | ||
$this->view()->setTemplate('project-update'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.