55 lines
1.8 KiB
PHP
Executable File
55 lines
1.8 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* The edit view file of push module of XXB.
|
|
*
|
|
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd., www.zentao.net)
|
|
* @license ZOSL (https://zpl.pub/page/zoslv1.html)
|
|
* @author xuanxuan
|
|
* @package Push
|
|
* @version $Id:
|
|
* @link https://xuanim.com
|
|
*/
|
|
?>
|
|
<?php
|
|
include '../../common/view/header.modal.html.php';
|
|
?>
|
|
<div class='page-content'>
|
|
<form method='post' id='pushEdit' class='form-ajax' action=<?php echo $this->createLink("push", 'admin', "type=$type");?>>
|
|
<table class='table table-form'>
|
|
<tr>
|
|
<th class="w-100px"><?php echo $lang->push->accessId;?></th>
|
|
<td class="w-300px">
|
|
<?php echo html::input('accessId', $currentConfig->accessId, "class='form-control code' placeholder='{$lang->push->placeholder->accessId}'");?>
|
|
</td>
|
|
<td class='text-muted'></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo $lang->push->accessKey;?></th>
|
|
<td>
|
|
<?php echo html::input('accessKey', $currentConfig->accessKey, "class='form-control code' placeholder='{$lang->push->placeholder->accessKey}'");?>
|
|
</td>
|
|
</tr>
|
|
<?php if($type == 'android') { ?>
|
|
<tr>
|
|
<th><?php echo $lang->push->secretKey;?></th>
|
|
<td>
|
|
<div class='required required-wrapper'></div>
|
|
<?php echo html::input('secretKey', $currentConfig->secretKey, "class='form-control code' placeholder='{$lang->push->placeholder->secretKey}'");?>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
<tr><th></th><td></td></tr>
|
|
<tr>
|
|
<th></th>
|
|
<td colspan='2'>
|
|
<?php echo html::submitButton();?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
<script>
|
|
$.setAjaxForm('#pushEdit');
|
|
</script>
|
|
<?php include '../../common/view/footer.modal.html.php';?>
|