* Code for jira.

This commit is contained in:
孙广明
2022-02-10 08:37:03 +08:00
parent e04850e946
commit 1086d07bf4
2 changed files with 111 additions and 0 deletions
+61
View File
@@ -0,0 +1,61 @@
<?php
/**
* The create view file of article module of chanzhiEPS.
*
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv11.html)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @package article
* @version $Id$
* @link http://www.chanzhi.org
*/
?>
<?php include '../../common/view/header.html.php';?>
<div id='mainContent' class='main-content'>
<div class='main-header'>
<h2><i class='icon-import'></i> <?php echo $lang->convert->jira->importJira;?></h2>
</div>
<div>
<div class='form-group'>
<ul id='resultBox'></ul>
</div>
<div class='from-group'><?php echo html::a(inlink('importJira', "type=$type"), $lang->convert->jira->start, '', "class='btn btn-primary' id='execButton'");?></div>
</div>
</div>
</div>
<script>
$(document).ready(function()
{
$('#execButton').click(function()
{
$('#execButton').hide();
$.getJSON($(this).attr('href'), function(response)
{
if(response.result == 'finished')
{
$('#resultBox').append("<li class='text-success'>" + response.message + "</li>");
return false;
}
else
{
className = response.type + 'count';
$typeCount = $('#resultBox .' + className)
if($typeCount.length == 0)
{
$('#resultBox').append("<li class='text-success'>" + response.message + "</li>");
}
else
{
count = parseInt($typeCount.html()) + parseInt(response.count);
$typeCount.html(count);
}
$('#execButton').attr('href', response.next);
return $('#execButton').click();
}
});
return false;
});
})
</script>
+50
View File
@@ -0,0 +1,50 @@
<?php
/**
* The init jira user view of user 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 Chunsheng Wang <chunsheng@cnezsoft.com>
* @package user
* @version $Id: create.html.php 4728 2013-05-03 06:14:34Z chencongzhi520@gmail.com $
* @link http://www.zentao.net
*/
?>
<?php include '../../common/view/header.html.php';?>
<div id="mainContent" class="main-content">
<div class="center-block">
<div class="main-header">
<h2><?php echo $lang->convert->jira->initJiraUser;?></h2>
</div>
<form class="load-indicator main-form form-ajax" id="createForm" method="post" target='hiddenwin'>
<table align='center' class="table table-form">
<tr>
<th><?php echo $lang->user->password;?></th>
<td>
<input type='password' style="display:none"> <!-- for disable autocomplete all browser -->
<span class='input-group'>
<?php echo html::password('password1', '', "class='form-control'");?>
</span>
</td>
<td><?php echo $lang->convert->jira->passwordNotice;?></td>
</tr>
<tr>
<th><?php echo $lang->user->password2;?></th>
<td><?php echo html::password('password2', '', "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->user->group;?></th>
<td><?php echo html::select('group', $groups, '', "class='form-control chosen'");?></td>
<td><?php echo $lang->convert->jira->groupNotice;?></td>
</tr>
<tr>
<td class='text-center form-actions' colspan='3'>
<?php echo html::submitButton($lang->convert->jira->next);?>
</td>
</tr>
</table>
</form>
</div>
</div>
<?php include '../../common/view/footer.html.php';?>