예제 #1
0
파일: menus.php 프로젝트: NejcZdovc/sumo2
require_once '../initialize.php';
$security->checkFull();
$accordion_id = 'a_menus';
$selected_lang_menus = 1;
if ($db->is('lang_menus')) {
    $selected_lang_menus = $db->filter('lang_menus');
} else {
    $selected_lang_menus = $user->translate_lang;
}
$pagging = check_pagging("SELECT ID,title,description,status,date,enabled,lang,parent,s_default FROM cms_menus WHERE status='N' AND domain='" . $user->domain . "' AND lang='" . $selected_lang_menus . "'", $user->items);
$dropdown = dropdown_pagging($accordion_id, $pagging[0]);
echo '<div class="flt-right display">' . $dropdown . '</div>';
if ($user->translate_state == "ON") {
    $dialog = 'd_menus_sitetree_trans';
    echo '<div class="flt-right display">Language ' . lang_dropdown('' . $selected_lang_menus . '', '' . $accordion_id . '', 'lang_menus') . '</div>';
} else {
    $dialog = 'd_menus_sitetree';
}
?>
<form id="">
<input id="selected_lang_menu_id" value="<?php 
echo $selected_lang_menus;
?>
" type="hidden"/>
</form>
<div id="a_menus_table" style="clear:both;">
<table cellpadding="0" cellspacing="1" border="0" class="table1 table2" id="viewgroups" width="99%">
	<tr>
    <th></th>
    	<th><?php 
예제 #2
0
/** Prints "Language selection" screen*/
function print_select_language()
{
    progress(10);
    echo "<br><center>\n\t<font class=\"pn-title\">" . _VERSION_WARNING . "</font><br><br>\n<font class=\"pn-title\">" . _SELECT_LANGUAGE_1 . "</font></center>\n<form action=\"install.php\" method=\"post\"><center><table width=\"50%\" align=center><tr>\n<td align=center><font class=\"pn-normal\">" . _SELECT_LANGUAGE_2;
    lang_dropdown();
    echo "<input type=\"hidden\" name=\"op\" value=\"Set Language\">\n<input type=\"submit\" value=\"" . _BTN_SET_LANGUAGE . "\"></font></td></tr>\n</table></center></form>";
}
예제 #3
0
function print_select_language() {
   echo '<table width="800" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="21"><img src="images/step_1.png" alt="" width="21" height="21" /></td>
            <td width="758" class="table_head_setuptitle">' . GREAT  . '</td>
            <td width="21"><img src="images/table_head_right.png" alt="" width="21" height="21" /></td>
          </tr>
        </table>' . "\n" .
        '<p><img src="images/start.png" alt="Shop-Installation" hspace="12" vspace="4" align="right" />' . GREAT_1 . '</p>' . "\n" .
        '<hr align="left" size="1" noshade="noshade" /> <img src="images/arrow_grey.png" alt="" width="11" height="11" align="middle" /><b class="oos-pageTitle"> ' . SELECT_LANGUAGE_1 . '</b>' . "\n" .
        '<form action="step.php" method="post">' . "\n";
   echo lang_dropdown();
   echo '<input type="hidden" name="op" value="Set Language">' . "\n" .
       '<input type="submit" value="' . BTN_SET_LANGUAGE . '">' . "\n" .
       '</form>' . "\n";
}
예제 #4
0
    $selected_author = " AND author='" . $db->filter('autor_id') . "'";
} else {
    $selected_author = '';
}
$query = "";
if ($db->is('query') && strlen($db->filter('query')) > 2) {
    $search = " AND title LIKE '%" . $db->filter('query') . "%'";
    $query = $db->filter('query');
} else {
    $search = '';
}
$pagging = check_pagging("SELECT ID,title,category,dateStart,views,dateEnd,lang,author,date, published FROM cms_article WHERE status='N' AND lang='" . $selected_lang_cat . "' AND domain='" . $user->domain . "' " . $selected_cat . " " . $selected_author . " " . $search . " order by title asc", $user->items);
$dropdown = dropdown_pagging($accordion_id, $pagging[0]);
echo '<div class="flt-right display">' . $dropdown . '</div>';
if ($user->translate_state == "ON") {
    echo '<div class="flt-right display">' . $lang->ARTICLE_3 . ' ' . lang_dropdown('' . $selected_lang_cat . '', '' . $accordion_id . '', 'lang_art') . '</div>';
}
echo '<div class="flt-right display"><select onchange="sumo2.accordion.ReloadAccordion(\'' . $accordion_id . '\', \'cat_id=\'+this.value);">
		  <option value="-1">' . $lang->MOD_185 . '</option>';
$catListQ = $db->query('SELECT ID, title FROM cms_article_categories WHERE status="N" AND enabled="1"');
while ($catListR = $db->fetch($catListQ)) {
    if ($db->filter('cat_id') == $catListR['ID']) {
        echo '<option value="' . $catListR['ID'] . '" selected="selected" style="text-transform:none;">' . $catListR['title'] . '</option>';
    } else {
        echo '<option value="' . $catListR['ID'] . '" style="text-transform:none;">' . $catListR['title'] . '</option>';
    }
}
echo '</select></div>';
echo '<div class="flt-right display"><select onchange="sumo2.accordion.ReloadAccordion(\'' . $accordion_id . '\', \'autor_id=\'+this.value);">
		  <option value="-1">' . $lang->MOD_186 . '</option>';
$catListQ = $db->query('SELECT DISTINCT author FROM cms_article WHERE status="N" ' . $selected_cat . '');
예제 #5
0
function owp_select_language()
{
    $selectLanguage = '<br />' . "\n" . '<p><font class="owp-pageGreat">' . GREAT . '</font></p>' . "\n" . '<p><font class="owp-main">' . GREAT_1 . '</font></p>' . "\n" . '<p><img src="images/trans.gif" width="1%" height="40" border="0" alt=" "></p>' . "\n" . '<p><font class="owp-title">' . SELECT_LANGUAGE_1 . '</font></p>' . "\n" . '<form action="index.php" method="post"><table width="400" align="center" border="0"><tr>' . "\n" . '<td align="center"><font class="owp-normal">' . SELECT_LANGUAGE_2;
    $selectLanguage .= lang_dropdown();
    $selectLanguage .= '<input type="hidden" name="op" value="Set Language">' . "\n" . '<input type="submit" value="' . BTN_SET_LANGUAGE . '"></td></tr>' . "\n" . '</table></form></font>' . "\n";
    return $selectLanguage;
}
예제 #6
0
      <ul style="font-size:12px;">
       	<li id="new"><div style="width:16px;height:16px;display:inline-block;background-image:url(images/css_sprite.png);background-position:-540px -1645px;"></div>&nbsp;<?php 
echo $lang->MENU_28;
?>
</li>
      </ul>
</div>
<table cellspacing="0" height="100%" width="100%">
	<tr>
    	<td class="str-panel1" id="sumo2-tree-menus-panel">
        	<div class="str-lang">
            	<?php 
echo $lang->SITE_TREE_1;
?>
 <?php 
echo lang_dropdown('' . $selected_lang_menus . '', '' . $accordion_id . '', 'lang_menus');
?>
            </div>
            <div class="str-menus-container" id="sumo2-tree-menus">
            	<?php 
echo '<ul id="tree-menu">';
$main = $db->query('SELECT * FROM cms_menus WHERE status="N" AND lang="' . $selected_lang_menus . '" AND domain="' . $user->domain . '"');
$homeResult = $db->get($db->query("SELECT * FROM cms_homepage WHERE lang='" . $selected_lang_menus . "' AND domain='" . $user->domain . "'"));
$homeIdResult = $db->get($db->query("SELECT * FROM cms_menus_items WHERE link='" . $homeResult['ID'] . "' AND parentID='-1' AND orderID='-1'"));
if ($homeResult) {
    if ($homeResult['selection'] == 1) {
        $shown = '';
        if ($isSelected && $selPage == $homeIdResult['ID']) {
            $firstLayout = true;
            $firstNum = $homeIdResult['ID'];
            $firstTmp = $homeResult['template'];