示例#1
0
    $att['filename'] = htmlFilter($att['filename']);
    $att['uploadtime'] = getDateStr($att['uploadtime']);
    $attachements[$key] = $att;
}
$folderrow = $cache_folders[$folderid];
$folderrow['title'] = htmlFilter($folderrow['title']);
print <<<EOT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>IMAGE</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../getfiles.php?t=js&v={$_SYS['VERSION']}&f=util|ajax|admin"></script>
<body style="background:#fff;">
<table width="100%"><tr><td width="140px"><a href="folder.php" target="_self" title="{$_AL['folder.returnfolder']}"><img src="images/btn_uplevel.gif" border="0" /></a> <img src="images/btn_close.gif" id="btnClose" onclick="window.parent.popwin.close()" border="0" style="cursor:pointer;" /> </td><td><div class="list_pager">{$pager->getPageStr()}</div></td></tr></table>
<form id="filesform" onsubmit="return false">
<!--#######################-->
<div class="condiv"><a href="folder.php">{$_AL['folder.all']}</a> -&gt; {$folderrow['title']} [<a href="javascript:showRenameFolder()">{$_AL['folder.rename']}</a>] &nbsp;&nbsp;&nbsp;| &nbsp;&nbsp;<input type="checkbox" onclick="selectAll('filesform',this.checked)" />{$_AL['all.selectall']} &nbsp;<a href="javascript:showDelFiles()">{$_AL['folder.delselfiles']}</a> &nbsp;<a href="javascript:showMoveFiles()">{$_AL['folder.moveselfiles']}</a>
\t<!--#######################-->
\t<div id="renamefolderdiv" style="display:none;">
\t\t<input type="hidden" name="folderid" value="{$folderid}" />
\t\t{$_AL['folder.inputnewname']}: <input type="text" value="{$folderrow['title']}" size="30" maxlength="50" id="newfoldername" name="newfoldername" class="text_css" /> <input type="button" value="  {$_AL['folder.confirm.modify']}  " onclick="renameFolder()" class="button_css" />
\t</div>
\t<!--#######################-->
\t<div id="movefilediv" style="display:none;">
\t\t{$_AL['folder.targetdir']}: <select name="targetfolder">{$cache_foldersoption}</select> <input type="button" value="  {$_AL['folder.move']}  " onclick="moveFiles()" class="button_css" />
\t</div>
\t<!--#######################-->
\t<div id="delfilediv" style="display:none;">
\t\t{$_AL['folder.del.warning']} <input type="button" value="  {$_AL['folder.confirm.del']}  " onclick="delFiles()" class="button_css" />
示例#2
0
文件: article.php 项目: rust1989/edit
\t</table>

EOT;
        echo "<form id=\"articlesform\" onsubmit=\"return false;\">";
        echo "<table class=\"table_1\" width=\"100%\">";
        echo "<tr style=\"font-weight:bold;color:#333333;\"><td class=\"row_0\">" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[1]}px;\">{$_AL['all.select']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[2]}px;\">{$_AL['all.title']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[7]}px;\">{$_AL['all.hits']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[5]}px;\">{$_AL['all.posttime']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[8]}px;\">{$_AL['all.control']}</div>" . "";
        for ($i = 0; $i < count($rows); $i++) {
            $row = $rows[$i];
            $row['posttime'] = getDateStr($row['posttime']);
            $row['title'] = htmlFilter($row['title']);
            $row['username'] = htmlFilter($row['username']);
            $checkboxstr = "<input type=\"checkbox\" value=\"{$row['id']}\" name=\"aids[]\" class=\"checkbox_css\" />";
            echo "<tr><td class=\"row_0\" style=\"line-height:150%;\">" . "<div class='rowdiv_0' style='width:{$dwidth[1]}px;'>{$checkboxstr}</div>" . "<div class='rowdiv_0' style='width:{$dwidth[2]}px;'><a href=\"../view.php?id={$row['id']}\" target=\"_blank\">{$row['title']}</a>&nbsp;</div>" . "<div class='rowdiv_0' style='width:{$dwidth[7]}px;'><span class='time'>{$row['hits']}</span></div>" . "<div class='rowdiv_0' style='width:{$dwidth[5]}px;'><span class='time'>{$row['posttime']}</span></div>" . "<div class='rowdiv_0' style='width:{$dwidth[8]}px;'><a href=\"admin.php?inc=article&action=edit&id={$row['id']}\">{$_AL['all.edit']}</a></div>" . "";
        }
        echo "</table>";
        echo "<table width=100%><tr><td><input type=\"checkbox\" onclick=\"selectAll('articlesform',this.checked)\" class=\"checkbox_css\" /> {$_AL['all.selectall']} &nbsp;&nbsp;<input type=\"button\" class=\"button_css\" value=\"  {$_AL['all.delete']}  \" onclick=\"ajax_doarticles_yn()\" /></td><td><div class='pagestrdiv'>{$pager->getPageStr()}</div></td></tr></table>";
        echo "</form>";
        echo <<<EOT
\t</div>
\t<div id="t2"></div>
\t<div id="t3"></div>
\t<div class="div_clear" style="height:30px;"></div>
<script>
var smallNowTab;
var pt = new Tabs();
pt.classpre="smalltab_";
pt.container = "smalltab_container";
pt.createTab("t1","{$_AL['article.title']}","",true,"n");
pt.init = function(){
\tsmallNowTab = pt.nowTab;
};
示例#3
0
文件: vote.php 项目: rust1989/edit
        echo "<tr style=\"font-weight:bold;color:#333333;\"><td class=\"row_0\">" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[6]}px;\">{$_AL['vote.order']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[2]}px;\">{$_AL['vote.subject']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[3]}px;\">{$_AL['vote.allowvotetime']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[4]}px;\">{$_AL['vote.totalnum']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[5]}px;\">{$_AL['all.control']}</div>" . "";
        for ($i = 0; $i < count($rows); $i++) {
            $tabindex = $i;
            $row = $rows[$i];
            $row['starttime'] = getDateStr($row['starttime']);
            $row['stoptime'] = getDateStr($row['stoptime']);
            $row['title'] = htmlFilter($row['title']);
            $checkboxstr = "<input type=\"checkbox\" value=\"{$row['id']}\" name=\"ids[]\" class=\"checkbox_css\" />";
            echo "<tr><td class=\"row_0\" style=\"line-height:150%;\">" . "<div class='rowdiv_0' style='width:{$dwidth[6]}px;'><input type=\"text\" size=\"2\" value=\"{$row[ordernum]}\" name=\"ordernum[{$row['id']}]\" tabIndex=\"{$tabindex}\" class=\"text_css\" /></div>" . "<div class='rowdiv_0' style='width:{$dwidth[2]}px;'><a href=\"../vote.php?id={$row['id']}\" target=\"_blank\">{$row['title']}</a>&nbsp;</div>" . "<div class='rowdiv_0' style='width:{$dwidth[3]}px;'><span class='time'>{$row['starttime']}</span> ~ <span class='time'>{$row['stoptime']}</span> </div>" . "<div class='rowdiv_0' style='width:{$dwidth[4]}px;'><span class='time'>{$row['votednum']}</span></div>" . "<div class='rowdiv_0' style='width:{$dwidth[5]}px;'><a href=\"admin.php?inc=vote&action=edit&id={$row['id']}\">{$_AL['all.edit']}</a>&nbsp;&nbsp;&nbsp;<a href=\"javascript:ajax_delvote_yn({$row['id']})\">{$_AL['all.delete']}</a>&nbsp;</div>" . "";
        }
        echo "</table>";
        echo <<<EOT
\t<table class="table_1" width="100%">
\t\t<tr><td class="td_6"><a class="td_5_1a" href="admin.php?inc=vote&action=add"><img src="images/ico_add.gif" border="0" /> {$_AL['vote.add']}</a></td></tr>
\t</table>
\t<table width=100%><tr><td><input type="button" class="button_css" value="  {$_AL['all.submit']}  " onclick="ajax_dovotes()" /></td><td><div class='pagestrdiv'>{$pager->getPageStr()}</div></td></tr></table>
EOT;
        echo "</form>";
        echo <<<EOT

\t</div>
\t<div id="t2"></div>
\t<div id="t3"></div>
\t<div class="div_clear" style="height:30px;"></div>
<script>
var smallNowTab;
var pt = new Tabs();
pt.classpre="smalltab_";
pt.container = "smalltab_container";
pt.createTab("t1","{$_AL['vote.list']}","",true,"n");
pt.init = function(){