* finish task#1127.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user