+ re tag it.
This commit is contained in:
@@ -10,7 +10,6 @@ CREATE TABLE IF NOT EXISTS `zt_userQuery` (
|
||||
`title` varchar(90) NOT NULL,
|
||||
`form` text NOT NULL,
|
||||
`sql` text NOT NULL,
|
||||
`mode` varchar(10) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `company` (`company`),
|
||||
KEY `account` (`account`),
|
||||
|
||||
@@ -548,7 +548,6 @@ CREATE TABLE IF NOT EXISTS `zt_userQuery` (
|
||||
`title` varchar(90) NOT NULL,
|
||||
`form` text NOT NULL,
|
||||
`sql` text NOT NULL,
|
||||
`mode` varchar(10) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `company` (`company`),
|
||||
KEY `account` (`account`),
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with ZenTaoMS. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @copyright Copyright 2009-2010 ?????????????????????(www.cnezsoft.com)
|
||||
* @copyright Copyright 2009-2010 青岛易软天创网络科技有限公司(www.cnezsoft.com)
|
||||
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
||||
* @package bug
|
||||
* @version $Id$
|
||||
|
||||
@@ -162,12 +162,6 @@ class searchModel extends model
|
||||
->orderBy('id_asc')
|
||||
->fetchPairs();
|
||||
if(!$queries) return array('' => $this->lang->search->myQuery);
|
||||
$i = ord('A');
|
||||
foreach($queries as $key => $value)
|
||||
{
|
||||
$queries[$key] = chr($i) . ': ' . $value;
|
||||
$i ++;
|
||||
}
|
||||
$queries = array('' => $this->lang->search->myQuery) + $queries;
|
||||
return $queries;
|
||||
}
|
||||
|
||||
@@ -110,12 +110,11 @@ class story extends control
|
||||
}
|
||||
|
||||
$this->commonAction($storyID);
|
||||
$story = $this->story->getById($storyID);
|
||||
|
||||
/* 赋值到模板。*/
|
||||
$this->view->header->title = $this->view->product->name . $this->lang->colon . $this->lang->story->edit . $this->lang->colon . $this->view->story->title;
|
||||
$this->view->position[] = $this->lang->story->edit;
|
||||
$this->view->users = $this->user->setDeleted($this->user->getPairs('nodeleted'), $story->assignedTo);
|
||||
$this->view->users = $this->user->setDeleted($this->user->getPairs('nodeleted'), $this->view->story->assignedTo);
|
||||
$this->display();
|
||||
}
|
||||
|
||||
@@ -319,8 +318,7 @@ class story extends control
|
||||
public function tasks($storyID, $projectID = 0)
|
||||
{
|
||||
$this->loadModel('task');
|
||||
$tasks = $this->task->getStoryTaskPairs($storyID, $projectID);
|
||||
$this->view->tasks = $tasks;
|
||||
$this->view->tasks = $this->task->getStoryTaskPairs($storyID, $projectID);
|
||||
$this->display();
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -122,15 +122,11 @@ class task extends control
|
||||
die(js::locate($this->createLink('task', 'view', "taskID=$taskID"), 'parent'));
|
||||
}
|
||||
|
||||
$task = $this->task->getByID($taskID);
|
||||
$project = $this->project->getById($task->project);
|
||||
$members = $this->project->getTeamMemberPairs($project->id ,'nodeleted');
|
||||
|
||||
/* 赋值。*/
|
||||
$this->view->header->title = $this->lang->task->edit;
|
||||
$this->view->position[] = $this->lang->task->edit;
|
||||
$this->view->stories = $this->story->getProjectStoryPairs($this->view->project->id);
|
||||
$this->view->members = $this->loadModel('user')->setDeleted($members, $task->owner);
|
||||
$this->view->members = $this->loadModel('user')->setDeleted($this->view->members, $this->view->task->owner);
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
<td><?php $lang->show($lang->task->priList, $task->pri);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead w-p20'><?php echo $lang->task->mailto;?></td>
|
||||
<td class='rowhead'><?php echo $lang->task->mailto;?></td>
|
||||
<td><?php $mailto = explode(',', str_replace(' ', '', $task->mailto)); foreach($mailto as $account) echo ' ' . $users[$account]; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -296,7 +296,7 @@ class user extends control
|
||||
}
|
||||
|
||||
/* 用户提交了登陆信息,则检查用户的身份。*/
|
||||
if(!empty($_POST) or !empty($_GET))
|
||||
if(!empty($_POST) or (isset($_GET['account']) and isset($_GET['password'])))
|
||||
{
|
||||
$account = '';
|
||||
$password = '';
|
||||
|
||||
Reference in New Issue
Block a user