12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /**
- * Created by PhpStorm.
- * User: stanley-king
- * Date: 16/3/17
- * Time: 下午2:09
- */
- defined('InShopNC') or exit('Access Invalid!');
- class taskControl extends mobileHomeControl
- {
- public function __construct()
- {
- parent::__construct();
- }
- public function indexOp()
- {
- TPL::showpage("task_home");
- }
- public function addOp()
- {
- $task = $_POST['task'];
- if(!empty($task)) {
- if(!is_array($_SESSION['task'])) {
- $_SESSION['task'] = array();
- }
- $_SESSION['task'][] = $task;
- }
- self::outsuccess(NULL,"task_home");
- }
- }
|