Files
EasySoft-ZenTaoPMS/module/sso/view/bind.html.php
T
2015-11-05 17:27:59 +08:00

80 lines
2.9 KiB
PHP

<?php
/**
* The bind view file of sso module of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv12.html)
* @author Yidong Wang <yidong@cnezsoft.com>
* @package sso
* @version $Id$
* @link http://www.zentao.net
*/
?>
<?php include '../../common/view/header.lite.html.php';?>
<?php include '../../common/view/chosen.html.php';?>
<div class='container mw-700px'>
<div class= 'panel'>
<div class='panel-heading'><strong><?php echo $lang->sso->bind?></strong></div>
<form method='post' target='hiddenwin' id='bindForm'>
<table class='table table-form'>
<tr>
<th class='w-100px'><?php echo $lang->sso->bindType?></th>
<td><?php echo html::radio('bindType', $lang->sso->bindTypeList, 'bind')?></td>
<td></td>
</tr>
<tr class='params bind'>
<th><?php echo $lang->sso->bindUser?></th>
<td><?php echo html::select('bindUser', $users, $data->account, "class='form-control chosen'")?></td>
</tr>
<tr class='params bind'>
<th><?php echo $lang->user->password?></th>
<td><?php echo html::input('bindPassword', '', "class='form-control'")?></td>
</tr>
<tr class='params add hide'>
<th><?php echo $lang->user->account?></th>
<td><?php echo html::input('account', $data->account, "class='form-control'")?></td>
</tr>
<tr class='params add hide'>
<th><?php echo $lang->user->password?></th>
<td><?php echo html::input('password1', '', "class='form-control'")?></td>
</tr>
<tr class='params add hide'>
<th><?php echo $lang->user->password2?></th>
<td><?php echo html::input('password2', '', "class='form-control'")?></td>
</tr>
<tr class='params add hide'>
<th><?php echo $lang->user->realname?></th>
<td><?php echo html::input('realname', $data->realname, "class='form-control'")?></td>
</tr>
<tr class='params add hide'>
<th><?php echo $lang->user->gender?></th>
<td><?php echo html::radio('gender', $lang->user->genderList, $data->gender)?></td>
</tr>
<tr class='params add hide'>
<th><?php echo $lang->user->email?></th>
<td><?php echo html::input('email', $data->email, "class='form-control'")?></td>
</tr>
<tr class='params add hide'>
<th></th>
<td colspan='2'><span style='color:red'><?php echo $lang->sso->bindNotice?></span></td>
</tr>
<tr>
<th></th>
<td><?php echo html::submitButton()?></td>
</tr>
</table>
</form>
</div>
</div>
<script>
$(function()
{
$('#bindForm input[id^="bindType"]').change(function()
{
$('#bindForm table tr.params').addClass('hide');
$('#bindForm table tr.' + $(this).val()).removeClass('hide');
})
})
</script>
<?php include '../../common/view/footer.lite.html.php';?>