示例#1
0
    $new_query = $db->fetch($db->query("SELECT title FROM cms_article_categories WHERE ID='" . $result['category'] . "'"));
    if ($counter & 1) {
        echo '<tr class="odd">';
    } else {
        echo '<tr class="even">';
    }
    ?>
                    	<td><input type="checkbox" name="a_trash_article_check" value="<?php 
    echo $crypt->encrypt($result['ID']);
    ?>
" /></td>
                        <td width="30px;" style="text-align:center;"><img src="images/icons/flags/<?php 
    echo lang_name_front($result['lang']);
    ?>
.png" alt="<?php 
    echo lang_name_front($result['lang']);
    ?>
"/></td>
                        <td><?php 
    echo $result['title'];
    ?>
</td>
                        <td><?php 
    echo $kategorija;
    ?>
</td>
                        <td><?php 
    echo $result['author'];
    ?>
</td>
                        <td><?php 
        </td>
    </tr>
    <tr>
    	<td class="right_td">
        <div style="float:left; margin-right:30px; width:245px">
        <b><?php 
echo $short_old;
?>
 <?php 
echo $lang->ARTICLE_29;
?>
:</b><br/><br/>
        	<?php 
echo $old['description'];
?>
        </div>
        <div style="float:left; margin-right:10px;">
        	<b><?php 
echo lang_name_front($language);
?>
 <?php 
echo $lang->ARTICLE_29;
?>
:</b><br/><br/>
			<textarea  id="content" class="input-area" name="content" rows="10" cols="28"></textarea>
        </div>
        </td>
    </tr>
    </table>
    </div>
</form>
示例#3
0
文件: menus.php 项目: NejcZdovc/sumo2
        ?>
                    <td width="150px" style="text-align:center;">
                    <select id="lang_trans">
                    <option value="0" >--- <?php 
        echo $lang->MENU_17;
        ?>
 ---</option>
                   <?php 
        $query1 = $db->query("SELECT ID,name,short FROM cms_language_front WHERE enabled='1'");
        while ($result1 = $db->fetch($query1)) {
            if ($selected_lang_menus != $result1['ID']) {
                $language = $db->query('SELECT lang FROM cms_menus WHERE parent=' . $result['ID'] . ' AND lang=' . $result1['ID'] . '');
                if (in_array($result1['ID'], $array, true) || $db->rows($language) > 0) {
                    echo '<option value="' . $result1['ID'] . '" disabled="disabled" class="select_lang_option" style="background-image: url(images/icons/flags/' . lang_name_front($result1['ID']) . '.png), url(images/icons/small/tick.png); background-position: top left, top right;" >' . $result1['name'] . '</option>';
                } else {
                    echo '<option value="' . $result1['ID'] . '" onclick="sumo2.dialog.NewDialog(\'d_menues_trans\', \'lang=' . $crypt->encrypt($result1['ID']) . '$!$menu=' . $crypt->encrypt($result['ID']) . '$!$current=' . $crypt->encrypt($selected_lang_menus) . '\')" class="select_lang_option" style="background-image: url(images/icons/flags/' . lang_name_front($result1['ID']) . '.png);" >' . $result1['name'] . '</option>';
                }
            }
        }
        ?>
                    </select>
                    </td> 
                    <?php 
    }
    ?>
				</tr>
				<?php 
    $counter++;
}
if ($counter == 1) {
    echo '<tr><td colspan="8" style="text-align:center; font-size:13px;"><b>' . $lang->MOD_8 . '</b></td></td>';
示例#4
0
        ?>
                    <td width="150px" style="text-align:center;">
                    <select id="lang_trans">
                    <option value="0" >--- <?php 
        echo $lang->ARTICLE_4;
        ?>
 ---</option>
                   <?php 
        $query1 = $db->query("SELECT ID,name,short FROM cms_language_front WHERE enabled='1'");
        while ($result1 = $db->fetch($query1)) {
            if ($selected_lang_cat != $result1['ID']) {
                $language = $db->query('SELECT lang FROM cms_article WHERE parent=' . $result['ID'] . ' AND lang=' . $result1['ID'] . '');
                if (in_array($result1['ID'], $array, true) || $db->rows($language) > 0) {
                    echo '<option value="' . $result1['ID'] . '" disabled="disabled" class="select_lang_option" style="background-image: url(images/icons/flags/' . lang_name_front($result1['ID']) . '.png), url(images/icons/small/tick.png); background-position: top left, top right;" >' . $result1['name'] . '</option>';
                } else {
                    echo '<option value="' . $result1['ID'] . '" onclick="sumo2.accordion.NewPanel(\'a_article_a_translate\', \'lang=' . $crypt->encrypt($result1['ID']) . '$!$article=' . $crypt->encrypt($result['ID']) . '$!$current=' . $crypt->encrypt($selected_lang_cat) . '\')" class="select_lang_option" style="background-image: url(images/icons/flags/' . lang_name_front($result1['ID']) . '.png);" >' . $result1['name'] . '</option>';
                }
            }
        }
        ?>
                    </select>
                    </td>
                    <?php 
    }
    ?>
				</tr>
				<?php 
    $counter++;
}
if ($counter == 1) {
    echo '<tr><td colspan="10" id="noresults" style="text-align:center; font-size:13px;"><b>' . $lang->MOD_10 . '</b></td></td>';
                        echo "</li>";
                    }
                    echo "</ul>";
                }
                echo "</li>";
            }
            echo "</ul>";
        }
        echo "</li>";
    }
    echo "</ul></div></div>";
}
echo '<div style="float:left; width:48%;">';
$main = $db->fetch($db->query('SELECT title FROM cms_menus WHERE ID=' . $id_main . ' AND status="N"'));
//first level
echo '<div id="0#' . $id_main . '" class="T_N" style="width:100%; height:auto; padding-top:5px;"><b>' . lang_name_front($current) . ' version:</b><br/><ul id="menu-sitetree-trans2"><div id="0#' . $id_main . '" >' . $main['title'] . '</div>';
$query = $db->query('SELECT ID, title, parentID, orderID, enabled, showM FROM cms_menus_items WHERE menuID=' . $id_main . ' AND parentID="0" AND status="N" ORDER BY orderID asc');
while ($results = $db->fetch($query)) {
    if ($sel === $results['ID']) {
        $show = 'class="show"';
    } else {
        $show = '';
    }
    $query2 = $db->query('SELECT ID, title, parentID, orderID, enabled, showM FROM cms_menus_items WHERE menuID=' . $id_main . ' AND parentID="' . $results['ID'] . '" AND status="N" ORDER BY orderID asc');
    $int = $db->rows($query2);
    $int1 = $db->rows($query);
    $first++;
    if ($results['enabled'] == 1) {
        $ena = '';
    } else {
        $ena = 'style="color:#ff0000;"';
示例#6
0
    $group_id = $result['menuID'];
    $items_query = $db->get($db->query("SELECT title,lang FROM cms_menus WHERE ID='" . $group_id . "'"));
    $description = substr($result['description'], 0, 80);
    if (strlen($description) >= 50) {
        $description .= "...";
    }
    ?>
                    <td><input type="checkbox" name="a_trash_menuI_check" value="<?php 
    echo $crypt->encrypt($result['ID']);
    ?>
" /></td>
                	<td width="30px;" style="text-align:center;"><img src="images/icons/flags/<?php 
    echo lang_name_front($items_query['lang']);
    ?>
.png" alt="<?php 
    echo lang_name_front($items_query['lang']);
    ?>
"/></td>
					<td><?php 
    echo $result['title'];
    ?>
</td>
					<td><div class="sumo2-tooltip" title="<?php 
    echo $result['description'];
    ?>
"><?php 
    echo $description;
    ?>
</div></td>
                    <td><?php 
    echo $items_query['title'];