Ejemplo n.º 1
0
function get_where($tablename = "sources", $itemname = "source", $getname = "sou")
{
    global $where;
    $items = searchbox_item_list($tablename);
    $whereitemina = array();
    foreach ($items as $item) {
        if ($_GET[$getname . $item[id]]) {
            $whereitemina[] = $item[id];
        }
    }
    if (count($whereitemina) >= 1) {
        $whereitemin = implode(",", $whereitemina);
        $where .= ($where ? " AND " : "") . $itemname . " IN(" . $whereitemin . ")";
    }
}
Ejemplo n.º 2
0
         $media = searchbox_item_list("media");
     }
     if ($showcodec) {
         $codecs = searchbox_item_list("codecs");
     }
     if ($showstandard) {
         $standards = searchbox_item_list("standards");
     }
     if ($showprocessing) {
         $processings = searchbox_item_list("processings");
     }
     if ($showteam) {
         $teams = searchbox_item_list("teams");
     }
     if ($showaudiocodec) {
         $audiocodecs = searchbox_item_list("audiocodecs");
     }
 }
 print "<table border=0 cellspacing=0 cellpadding=5 width=940>";
 form("tracker");
 if ($type == 'saved') {
     print "<tr><td colspan=2 class=\"heading\" valign=\"top\" align=\"center\"><font color=red>" . $lang_usercp['text_saved'] . "</font></td></tr>\n";
 }
 if ($emailnotify_smtp == 'yes' && $smtptype != 'none') {
     tr_small($lang_usercp['row_email_notification'], "<input type=checkbox name=pmnotif" . (strpos($CURUSER['notifs'], "[pm]") !== false ? " checked" : "") . " value=yes> " . $lang_usercp['checkbox_notification_received_pm'] . "<br />\n<input type=checkbox name=emailnotif" . (strpos($CURUSER['notifs'], "[email]") !== false ? " checked" : "") . " value=\"yes\" /> " . $lang_usercp['checkbox_notification_default_categories'], 1);
 }
 $categories = "<table>" . ($allowspecial ? "<tr><td class=embedded align=left><font class=big>" . $lang_usercp['text_at_browse_page'] . "</font></td></tr></table><table>" : "") . "<tr><td class=embedded align=left><b>" . ($brenablecatrow == true ? $brcatrow[0] : $lang_usercp['text_category']) . "</b></td></tr><tr>";
 $i = 0;
 foreach ($brcats as $cat) {
     $numinrow = $i % $catsperrow;
     $rownum = (int) ($i / $catsperrow);
Ejemplo n.º 3
0
                var ret = document.createDocumentFragment();
                var newop = document.createElement("option");
                newop.id = list[j][0];
                newop.value = list[j][0]; 
                newop.appendChild(document.createTextNode(list[j][1])); 
                ret.appendChild(newop); 
                document.getElementById(name).appendChild(ret);
}
}

function secondtype(value) {
<?php 
    $cats = genrelist($browsecatmode);
    foreach ($cats as $row) {
        $catsid = $row['id'];
        $secondtype = searchbox_item_list("sources", $catsid);
        $secondsize = count($secondtype, 0);
        print "var lid" . $catsid . " = new Array(";
        for ($i = 0; $i < $secondsize; $i++) {
            print "['" . $secondtype[$i]['id'] . "','" . $secondtype[$i]['name'] . "']";
            if ($i < $secondsize - 1) {
                print ",";
            }
        }
        print ");\n";
    }
    $cats = genrelist($browsecatmode);
    print "switch(value.value){\n";
    foreach ($cats as $row) {
        $catsid = $row['id'];
        print "\tcase \"" . $catsid . "\": ";
Ejemplo n.º 4
0
function torrent_selection($name, $selname, $listname, $selectedid = 0)
{
    global $lang_functions;
    $selection = "<b>" . $name . "</b>&nbsp;<select name=\"" . $selname . "\">\n<option value=\"0\">" . $lang_functions['select_choose_one'] . "</option>\n";
    $listarray = searchbox_item_list($listname);
    foreach ($listarray as $row) {
        $selection .= "<option value=\"" . $row["id"] . "\"" . ($row["id"] == $selectedid ? " selected=\"selected\"" : "") . ">" . htmlspecialchars($row["name"]) . "</option>\n";
    }
    $selection .= "</select>&nbsp;&nbsp;&nbsp;\n";
    return $selection;
}