* move the js code to footer.html.php.
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/treeview.html.php';?>
|
||||
<?php include '../../common/view/colorize.html.php';?>
|
||||
|
||||
<div class='yui-d0'>
|
||||
<div id='featurebar'>
|
||||
<div class='f-right'>
|
||||
@@ -91,7 +90,4 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<script language='javascript'>
|
||||
$('#module<?php echo $moduleID;?>').addClass('active')
|
||||
</script>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
<?php include './footer.html.php';?>
|
||||
|
||||
@@ -23,13 +23,6 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<script language='Javascript'>
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(".right a").colorbox({width:500, height:200, iframe:true, transition:'none'});
|
||||
$("#modulemenu a:contains('<?php echo $lang->doc->editLib;?>')").colorbox({width:500, height:200, iframe:true, transition:'none'});
|
||||
});
|
||||
</script>
|
||||
<div class='yui-d0'>
|
||||
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
@@ -53,27 +46,6 @@ $(document).ready(function()
|
||||
<th class='rowhead'><?php echo $lang->doc->title;?></th>
|
||||
<td><?php echo html::input('title', $title, "class='text-1'");?></td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->doc->type;?></th>
|
||||
<td><?php //echo html::input('type', $type, "class='text-1'");?></td>
|
||||
</tr>
|
||||
<th class='rowhead'><?php echo $lang->doc->digest;?></th>
|
||||
<td><?php //echo html::input('digest', $digest, "class='text-1'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->doc->content;?></th>
|
||||
<td><?php //echo html::textarea('content', $content, "rows='6' class='area-1'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->doc->keywords;?></th>
|
||||
<td><?php //echo html::input('keywords', $keywords, "class='text-1'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->doc->url;?></th>
|
||||
<td><?php //echo html::input('url', $url, "class='text-1'");?></td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->doc->files;?></th>
|
||||
<td><?php echo $this->fetch('file', 'buildform', 'fileCount=2');?></td>
|
||||
@@ -87,4 +59,4 @@ $(document).ready(function()
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
<?php include './footer.html.php';?>
|
||||
|
||||
@@ -40,3 +40,5 @@
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -23,13 +23,6 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<script language='Javascript'>
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(".right a").colorbox({width:500, height:200, iframe:true, transition:'none'});
|
||||
$("#modulemenu a:contains('<?php echo $lang->doc->editLib;?>')").colorbox({width:500, height:200, iframe:true, transition:'none'});
|
||||
});
|
||||
</script>
|
||||
<div class='yui-d0'>
|
||||
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
@@ -42,27 +35,6 @@ $(document).ready(function()
|
||||
<th class='rowhead'><?php echo $lang->doc->title;?></th>
|
||||
<td><?php echo html::input('title', $title, "class='text-1'");?></td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->doc->type;?></th>
|
||||
<td><?php //echo html::input('type', $type, "class='text-1'");?></td>
|
||||
</tr>
|
||||
<th class='rowhead'><?php echo $lang->doc->digest;?></th>
|
||||
<td><?php //echo html::input('digest', $digest, "class='text-1'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->doc->content;?></th>
|
||||
<td><?php //echo html::textarea('content', $content, "rows='6' class='area-1'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->doc->keywords;?></th>
|
||||
<td><?php //echo html::input('keywords', $keywords, "class='text-1'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->doc->url;?></th>
|
||||
<td><?php //echo html::input('url', $url, "class='text-1'");?></td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->doc->files;?></th>
|
||||
<td><?php echo $this->fetch('file', 'buildform', 'fileCount=2');?></td>
|
||||
@@ -76,4 +48,4 @@ $(document).ready(function()
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
<?php include './footer.html.php';?>
|
||||
|
||||
@@ -25,6 +25,9 @@
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<style>body{background:white; margin-top:20px; padding-bottom:0}</style>
|
||||
<div id='yui-d0'>
|
||||
<?php if($libID == 'product' or $libID == 'project'):?>
|
||||
<h3><?php echo $lang->doc->errorEditSystemDoc;?></h3>
|
||||
<?php else:?>
|
||||
<form method='post'>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $lang->doc->editLib;?></caption>
|
||||
@@ -32,11 +35,10 @@
|
||||
<th class='rowhead'><?php echo $lang->doc->libName;?></th>
|
||||
<td><?php echo html::input('name', $libName, "class='text-1'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='a-center'>
|
||||
<?php echo html::submitButton();?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan='2' class='a-center'><?php echo html::submitButton();?></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
9
trunk/module/doc/view/footer.html.php
Normal file
9
trunk/module/doc/view/footer.html.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<script language='Javascript'>
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(".right a").colorbox({width:500, height:200, iframe:true, transition:'none'});
|
||||
$("#modulemenu a:contains('<?php echo $lang->doc->editLib;?>')").colorbox({width:500, height:200, iframe:true, transition:'none'});
|
||||
});
|
||||
</script>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -30,11 +30,6 @@ function deleteFile(fileID)
|
||||
if(!fileID) return;
|
||||
hiddenwin.location.href =createLink('doc', 'deleteFile', 'fileID=' + fileID);
|
||||
}
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(".right a").colorbox({width:500, height:200, iframe:true, transition:'none'});
|
||||
$("#modulemenu a:contains('<?php echo $lang->doc->editLib;?>')").colorbox({width:500, height:200, iframe:true, transition:'none'});
|
||||
});
|
||||
</script>
|
||||
<div class='yui-d0'>
|
||||
<table class='table-1'>
|
||||
@@ -49,13 +44,14 @@ $(document).ready(function()
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->files;?></th>
|
||||
<td><?php
|
||||
foreach($doc->files as $file)
|
||||
{
|
||||
echo html::a($this->createLink('file', 'download', "fileID=$file->id"), $file->title, '_blank');
|
||||
echo html::commonButton('x', "onclick=deleteFile($file->id)");
|
||||
}
|
||||
?>
|
||||
<td>
|
||||
<?php
|
||||
foreach($doc->files as $file)
|
||||
{
|
||||
echo html::a($this->createLink('file', 'download', "fileID=$file->id"), $file->title, '_blank');
|
||||
echo html::commonButton('x', "onclick=deleteFile($file->id)");
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -71,4 +67,4 @@ $(document).ready(function()
|
||||
?>
|
||||
</div>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
<?php include './footer.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user