* Adjust code style.
This commit is contained in:
@@ -395,7 +395,7 @@ class custom extends control
|
||||
$this->lang->custom->menu = new stdclass();
|
||||
$this->lang->navGroup->custom = 'system';
|
||||
|
||||
if(strtolower($this->server->request_method) == "post")
|
||||
if($_POST)
|
||||
{
|
||||
$data = fixer::input('post')->get();
|
||||
$this->loadModel('setting')->setItem('system.custom.planStatus', $data->planStatus);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
$config->durationestimation = new stdclass;
|
||||
$config->durationestimation->index = new stdclass;
|
||||
$config->durationestimation = new stdclass();
|
||||
$config->durationestimation->index = new stdclass();
|
||||
$config->durationestimation->index->requiredFields = 'scale,productivity,scale,duration,unitLaborCost,totalLaborCost';
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* The control file of durationestimation of ChanzhiEPS.
|
||||
* The control file of durationestimation of ZentaoPMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
|
||||
* @license ZPL (http://zpl.pub/page/zplv11.html)
|
||||
* @author Xiying Guan <guanxiying@xirangit.com>
|
||||
* @package durationestimation
|
||||
* @version $Id$
|
||||
* @link http://www.chanzhi.org
|
||||
* @link http://www.zentao.net
|
||||
*/
|
||||
class durationestimation extends control
|
||||
{
|
||||
@@ -51,7 +51,9 @@ class durationestimation extends control
|
||||
$total = 0;
|
||||
foreach($this->post->workload as $value) $total += $value;
|
||||
if($total != 100) $this->send(array('result' => 'fail', 'message' => $this->lang->durationestimation->workloadError));
|
||||
|
||||
$this->durationestimation->save($programID);
|
||||
|
||||
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError()));
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('index', "currentProgram={$programID}")));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user