* Code for jira.
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user