示例#1
0
文件: index.php 项目: xarrper/cms
function admin($section)
{
    //загрузка представления
    $data = array();
    $data = info($section);
    $data['menu'] = menu($section);
    $data['bread'] = breadCrumbs($section);
    $data['page_name'] = 'Сайт';
    require "view/viewSite.php";
}
示例#2
0
?>
" />
	<input type="hidden" name="message_editor" value="<?php 
echo isset($message->message_author) && ($message_id || $message_parent < 0) ? $AppUI->user_id : '0';
?>
" />
	<input type="hidden" name="message_id" value="<?php 
echo $message_id;
?>
" />
    <table cellspacing="0" cellpadding="3" border="0" width="100%" class="std">
        <tr><td>
            <table cellspacing="1" cellpadding="2" border="0" width="100%">
            <tr>
                <td align="left" nowrap="nowrap"><?php 
echo breadCrumbs($crumbs);
?>
</td>
                <td width="100%" align="right"></td>
            </tr>
            </table>
        </td></tr>
        <tr>
            <th valign="top" colspan="2"><strong><?php 
echo $AppUI->_($message_id ? 'Edit Message' : 'Add Message');
?>
</strong></th>
        </tr>
        <?php 
if ($message_parent >= 0) {
    //check if this is a reply-post; if so, printout the original message
示例#3
0
    $selection = "{$default_image}";
}
$gallery_title = stripslashes(htmlentities($gallery_title, ENT_QUOTES));
// Start the html output
write_html_head($gallery_title);
// Start the html body
print <<<EOH
  <BODY>

<H1>{$gallery_title}</H2>

EOH;
if (!$default) {
    breadCrumbs($action, $gallery, $dirkey, $title);
} else {
    breadCrumbs("default", $gallery, $dirkey, $title);
}
print <<<EOH
<TABLE>
<TR>
<TD class=list valign=top >

<H2>Galleries</H2>

<ul class="bullet">

EOH;
foreach (array_keys($titles) as $key) {
    gallery_listing($gallery, $key, $titles[$key]);
}
print "  </ul>\n";