* add insert param for cover or insert exist data.

This commit is contained in:
wangyidong
2020-05-29 10:08:11 +08:00
parent 7a9cc4070a
commit 91de6e934c
4 changed files with 51 additions and 43 deletions
+6 -4
View File
@@ -125,13 +125,15 @@ $(function()
<tr>
<td colspan='10' class='text-center form-actions'>
<?php
if(!$insert)
$submitText = $isEndPage ? $this->lang->save : $this->lang->file->saveAndNext;
if(!$insert and $dataInsert === '')
{
echo "<button type='button' data-toggle='modal' data-target='#importNoticeModal' class='btn btn-primary btn-wide'>{$lang->save}</button>";
echo "<button type='button' data-toggle='modal' data-target='#importNoticeModal' class='btn btn-primary btn-wide'>{$submitText}</button>";
}
else
{
echo html::submitButton($isEndPage ? $this->lang->save : $this->lang->file->saveAndNext);
echo html::submitButton($submitText);
if($dataInsert !== '') echo html::hidden('insert', $dataInsert);
echo html::hidden('isEndPage', $isEndPage ? 1 : 0);
echo html::hidden('pagerID', $pagerID);
}
@@ -142,7 +144,7 @@ $(function()
</tr>
</tfoot>
</table>
<?php if(!$insert) include '../../common/view/noticeimport.html.php';?>
<?php if(!$insert and $dataInsert === '') include '../../common/view/noticeimport.html.php';?>
</form>
</div>
<?php endif;?>