Files
EasySoft-ZenTaoPMS/trunk/module/todo/view/footer.html.php
2009-12-25 02:21:51 +00:00

53 lines
1.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script language='Javascript'>
account='<?php echo $app->user->account;?>';
customHtml = $('#nameBox').html();
function loadList(type)
{
if(type == 'bug')
{
link = createLink('bug', 'ajaxGetUserBugs', 'account=' + account);
}
else if(type == 'task')
{
link = createLink('task', 'ajaxGetUserTasks', 'account=' + account);
}
if(type == 'bug' || type == 'task')
{
$('#nameBox').load(link);
}
else if(type == 'custom')
{
$('#nameBox').html(customHtml);
}
}
function selectNext()
{
endIndex = $("#begin ").get(0).selectedIndex + 2;
$("#end ").get(0).selectedIndex = endIndex;
}
function switchDateFeature(switcher)
{
if(switcher.checked)
{
$('#begin').attr('disabled','disabled');
$('#end').attr('disabled','disabled');
}
else
{
$('#begin').removeAttr('disabled');
$('#end').removeAttr('disabled');
}
}
/* 当页面加载完毕之后调用selectNext()。*/
$(document).ready(function()
{
selectNext();
switchDateFeature(document.getElementById('switcher'));
});
</script>
<?php include '../../common/footer.html.php';?>