Beispiel #1
0
function option_sub_cat($parent_id, $cat, $pre)
{
    $db = new FQuery();
    $sql = $db->select(FDBPrefix . "article_category", "*", "parent_id={$parent_id} AND id!={$_REQUEST['id']}");
    while ($qr = mysql_fetch_array($sql)) {
        $s = multipleSelected($cat, $qr['id']);
        echo "<option value='{$qr['id']}' {$s}>{$pre} |_ {$qr['name']}</option>";
        option_sub_cat($qr['id'], $cat, $pre . "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
    }
}
Beispiel #2
0
"><?php 
echo Tags;
?>
</td>
				<td> <select name="tags[]" class="chosen-select w-max" data-placeholder="<?php 
echo Choose_tags;
?>
" style="min-width:150px; width:100%;" multiple>
				<option value=""></option>
					<?php 
$_GET['id'] = 0;
$db = new FQuery();
$db->connect();
$sql = $db->select(FDBPrefix . 'article_tags');
while ($qrs = mysql_fetch_array($sql)) {
    $sel = multipleSelected($qr['tags'], $qrs['name']);
    echo "<option value='{$qrs['name']}' {$sel}>{$qrs['name']}</option>";
}
?>
				</select></td>
			</tr>
			<?php 
if ($_GET['act'] != 'add') {
    ?>
			<tr>
				<td class="row-title" title="<?php 
    echo Hits;
    ?>
"><?php 
    echo Hits;
    ?>
Beispiel #3
0
function option_sub_menu($parent_id, $sub = null, $pre = null, $page)
{
    $db = new FQuery();
    $db->connect();
    $sql = $db->select(FDBPrefix . "menu", "*", "parent_id={$parent_id}");
    while ($qr = mysql_fetch_array($sql)) {
        $sel = multipleSelected($page, $qr['id']);
        if ($sel == 'selected') {
            $sel = "class='active' checked";
        }
        $check = "<input {$sel} type='checkbox' name='page[]' value='{$qr['id']}' rel='ck'>";
        echo "<li value='{$qr['id']}' {$sel}>{$pre}&nbsp;&nbsp;|_ {$check} {$qr['name']}</li>";
        option_sub_menu($qr['id'], $sub + 1, "&nbsp;" . $pre . "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", $page);
    }
}
Beispiel #4
0
					<label class="selections-reset"><?php 
echo Reset_all;
?>
</label>
					</div>
					<div class="selections-box" style="height:150px; max-width: 280px; font-size:12px;  overflow-y: auto;">
					<?php 
$sql2 = $db->select(FDBPrefix . 'menu_category', '*', "category != 'adminpanel'");
while ($qr2 = mysql_fetch_array($sql2)) {
    $sql3 = $db->select(FDBPrefix . 'menu', '*', "parent_id=0 AND category='{$qr2['category']}'", 'short ASC');
    if (!mysql_affected_rows()) {
        continue;
    }
    echo "<h6>{$qr2['title']}</h6><ul class='selectbox' >";
    while ($qr3 = mysql_fetch_array($sql3)) {
        $sel = multipleSelected($qr['page'], $qr3['id']);
        if ($sel == 'selected' or !$qr) {
            $sel = "class='active' checked";
        }
        $check = "<input {$sel} type='checkbox' name='page[]' value='{$qr3['id']}' rel='ck'>";
        echo "<li value='{$qr3['id']}' {$sel}>{$check} {$qr3['name']} </li>";
        option_sub_menu($qr3['id'], '', '', $qr['page']);
    }
    echo "</ul>";
}
?>
					</div>
					</div>
				</td>
			</tr>
			</table>