* finish task#1127.

This commit is contained in:
chencongzhi520@gmail.com
2013-02-27 02:54:49 +00:00
parent 614e3312d9
commit f6b4c30fd3
2 changed files with 4 additions and 2 deletions

View File

@@ -99,6 +99,8 @@ class companyModel extends model
public function update()
{
$company = fixer::input('post')->stripTags('name')->get();
if($company->website == 'http://') $company->website = '';
if($company->backyard == 'http://') $company->backyard = '';
$companyID = $this->app->company->id;
$this->dao->update(TABLE_COMPANY)
->data($company)

View File

@@ -36,11 +36,11 @@
</tr>
<tr>
<th class='rowhead'><?php echo $lang->company->website;?></th>
<td><?php echo html::input('website', zget($company, 'website', 'http://'), "class='text-1'");?></td>
<td><?php echo html::input('website', $company->website ? $company->website : 'http://', "class='text-1'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->company->backyard;?></th>
<td><?php echo html::input('backyard', zget($company, 'backyard', 'http://'), "class='text-1'");?></td>
<td><?php echo html::input('backyard', $company->backyard ? $company->backyard : 'http://', "class='text-1'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->company->pms;?></th>