* ajax拉取信息 * * ajaxGet 规范: ajaxId为该模块的ID; */ public function getInfo_Action() { $model = $this->getInput['model']; switch ($model) { case 'project': $baseInfo = control_baseMoney::getBaseInfo(intval($this->getInput['ajaxId'])); showmsg(control_returnCode::ALWAYS_TRUE, array('baseName' => $baseInfo[control_baseMoney::TABLE_KEYNAME], 'baseMoney' => $baseInfo[control_baseMoney::TABLE_BASEMONEY], 'runMoney' => $baseInfo[control_baseMoney::TABLE_RUNMONEY])); break; case 'projectlog': list($total, $baseLogInfo) = control_baseMoney::getLogList(intval($this->getInput['ajaxId']), 1, 10); $this->defaultTemplate = 'admin/project/log'; $this->modelDisplay(array('baseLogInfo' => $baseLogInfo)); break; case 'searchClient': $query = $this->getInput['query']; list($total, $list) = control_user::getListByKeyword($query, 1, 10); foreach ($list as $user) { $jsonList[] = array('keyName' => $user[control_user::TABLE_REALNAME], 'key' => (string) $user[control_user::TABLE_UNIONKEY]); } echo json_encode($jsonList); break; default:
public function clientlist_Action() { $baseId = intval($this->getInput['baseId']); $baseInfo = control_baseMoney::getBaseInfo($baseId); list(, $clientList) = control_userBase::getPlanUserHaveList($baseId); foreach ($clientList as $client) { $uids[] = $client[control_userBase::TABLE_USERID]; } $clientMoreInfoList = control_user::getUserListByIds($uids); $this->modelDisplay(array('baseId' => $baseId, 'baseInfo' => $baseInfo, 'clientList' => $clientList, 'clientInfo' => $clientMoreInfoList)); }
public function projectInfo_Action() { $userId = $this->getInput['userId']; if ($userId) { $userInfo = control_user::getUserInfo($userId); if (!$userInfo) { showmsg(control_returnCode::FORM_INFO_EMPTY); } } list(, $userPlanList) = control_userBase::getUserPlanList($userInfo[control_user::TABLE_KEY]); foreach ($userPlanList as $plan) { $baseId[] = $plan[control_userBase::TABLE_KEY]; } list(, $basePlanList) = control_baseMoney::getListByIds($baseId); $this->modelDisplay(array('userInfo' => $userInfo, 'userPlanList' => $userPlanList, 'basePlanList' => $basePlanList)); }
<span class="help-block"></span> </div> </div> <div class="form-group"> <label for="select" class="control-label">注资方案</label> <div> <select class="form-control" name="cashType"> <option value="outcash_in">外部注资</option> <option value="outcash_out">外部撤资</option> <option value="incash_in">内部注资</option> <option value="incash_out">内部撤资</option> </select> </div> </div> <?php foreach (control_baseMoney::getMoneyArray() as $moneyFeild => $moneyName) { ?> <div class="form-group"> <label class="control-label"><?php echo $moneyName; ?> </label> <p>¥ <span id="<?php echo $moneyFeild; ?> ">0.00</span></p> </div> <?php } ?> <div class="form-group">