Exemple #1
0
function html_dropdown($items, $selected = null, $addons = null, $add_empty = false, $as_value = null, $as_text = null, $grouped = false)
{
    $select = empty($grouped) ? '<select' . (!empty($addons['#']) ? ' ' . $addons['#'] : '') . '>' : '';
    // Add empty option
    if (!empty($add_empty)) {
        $value = key($add_empty);
        $select .= '<option value="' . set_input_value($value) . '"';
        if (!empty($addons[$value])) {
            $select .= ' ' . $addons[$value];
        }
        if (is_array($selected) && in_array($value, $selected) || $selected == $value) {
            $select .= ' selected="selected"';
        }
        $select .= '>' . reset($add_empty) . '</option>';
    }
    // Loop through options
    foreach ($items as $value => $text) {
        // If grouped dropdown
        if (is_array($text)) {
            $select .= '<optgroup label="' . $value . '">';
            $select .= dropdown($text, $selected, $addons, false, $as_value, $as_text, true);
            $select .= '</optgroup>';
            continue;
        }
        $value = empty($as_value) ? $value : $text->{$as_value};
        $text = empty($as_text) ? $text : $text->{$as_text};
        $select .= '<option value="' . set_input_value($value) . '"';
        if (!empty($addons[$value])) {
            $select .= ' ' . $addons[$value];
        }
        if (is_array($selected) && in_array($value, $selected) || $selected == $value) {
            $select .= ' selected="selected"';
        }
        $select .= '>' . $text . '</option>';
    }
    if (empty($grouped)) {
        $select .= '</select>';
    }
    return $select;
}
Exemple #2
0
     $index = info(_clankasse_deleted, "../clankasse/");
 } elseif ($_GET['do'] == "update" && $_POST['id']) {
     if (!$_POST['datum']) {
         $index = error(_error_clankasse_empty_datum, 1);
     } elseif (!$_POST['betrag']) {
         $index = error(_error_clankasse_empty_betrag, 1);
     } elseif (!$_POST['transaktion']) {
         $index = error(_error_clankasse_empty_transaktion, 1);
     } else {
         $res = db("UPDATE " . $db['clankasse'] . "\n                     SET `datum`        = '" . (int) $_POST['datum'] . "',\n                         `transaktion`  = '" . up($_POST['transaktion']) . "',\n                         `pm`           = '" . (int) $_POST['pm'] . "',\n                         `betrag`       = '" . up($_POST['betrag']) . "'\n                     WHERE id = " . intval($_POST['id']));
         $index = info(_clankasse_edited, "../clankasse/");
     }
 } elseif ($_GET['do'] == "edit") {
     $qry = db("SELECT * FROM " . $db['clankasse'] . "\n                 WHERE id = '" . intval($_GET['id']) . "'");
     $get = _fetch($qry);
     $dropdown_date = show(_dropdown_date, array("day" => dropdown("day", date("d", $get['datum'])), "month" => dropdown("month", date("m", $get['datum'])), "year" => dropdown("year", date("Y", $get['datum']))));
     if ($get['pm'] == "0") {
         $psel = "selected=\"selected\"";
     } else {
         $msel = "selected=\"selected\"";
     }
     $qryk = db("SELECT * FROM " . $db['c_kats'] . "");
     while ($getk = _fetch($qryk)) {
         if ($getk['kat'] == $get['transaktion']) {
             $sel = "selected=\"selected\"";
         } else {
             $sel = "";
         }
         $trans .= show(_select_field, array("value" => re($getk['kat']), "sel" => $sel, "what" => re($getk['kat'])));
     }
     $index = show($dir . "/edit", array("newhead" => _clankasse_head_edit, "betrag" => _clankasse_cbetrag, "datum" => _datum, "vonan" => _clankasse_for, "dropdown_date" => $dropdown_date, "id" => $_GET['id'], "psel" => $psel, "msel" => $msel, "value" => _button_value_edit, "bsel" => $bsel, "misel" => $misel, "ssel" => $ssel, "spsel" => $spsel, "trans" => $trans, "evonan" => re($get['member']), "sum" => re($get['betrag']), "beitrag" => _clankasse_sbeitrag, "miete" => _clankasse_smiete, "ssonstiges" => _clankasse_ssonstiges, "einzahlung" => _clankasse_einzahlung, "auszahlung" => _clankasse_auszahlung, "sponsor" => _clankasse_ssponsor, "sonstiges" => _clankasse_sonstiges, "member" => _member, "transaktion" => _clankasse_ctransaktion, "minus" => _clankasse_admin_minus, "post" => time()));
Exemple #3
0
</label>
<div class="controls">
	<?php 
    echo dropdown($sheetData, 'deleted');
    ?>
</div>
</div>

<div class="control-group">
<label class="control-label" for="focusedInput"><?php 
    echo lang('last_modify_date');
    ?>
</label>
<div class="controls">
	<?php 
    echo dropdown($sheetData, 'last_modify_date');
    ?>
</div>
</div>



    <?php 
} else {
    ?>
    
   
<div class="control-group">
<label class="control-label" for="focusedInput"><?php 
    echo lang('ecxel_file');
    ?>
Exemple #4
0
</label>
<div class="controls">
	<?php 
    echo dropdown($sheetData, 'page_id');
    ?>
</div>
</div>	
 
<div class="control-group">
<label class="control-label" for="focusedInput"><?php 
    echo lang('page_category_id');
    ?>
</label>
<div class="controls">
	<?php 
    echo dropdown($sheetData, 'page_category_id');
    ?>
</div>
</div>	
  	

    <?php 
} else {
    ?>
    
   
<div class="control-group">
<label class="control-label" for="focusedInput"><?php 
    echo lang('ecxel_file');
    ?>
</label>
Exemple #5
0
<script language="javascript">
/*	$(document).ready(function(e) {
        $('input:first').focus().select();
		$('#levelid').html("<?php 
dropdown('user_level', 'idlevel', 'nmlevel');
?>
");
    });*/
</script>
<div class='contents'>
<div class="j_panel judul">Add New User</div>
<div class="pn_content">
<hr>
<?php 
/*
echo "<form id='frm1' name='frm1' action='' method='post'>";
$zb=new zetro_frmBuilder('asset/bin/form.cfg');
$zb->BuildForm('Adduser',true,'80%');*/
hapus_table('user_level', "where idlevel='" . @$_GET['id'] . "'");
?>
</div>
</div>
<div class="panel panel-inverse" data-sortable-id="table-basic-2">
                        <div class="panel-heading">
                            <div class="panel-heading-btn">
                                <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
                                <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-repeat"></i></a>
                                <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
                            </div>
                            <h4 class="panel-title">Customer list <?php echo $button ?></h4>
                        </div>
                        <div class="panel-body">
                            <form action="<?php echo $action; ?>" method="post">
	    <div class="form-group">
                <label for="int">CUSTOMERID <?php echo form_error('customerID') ?></label>
                <?php echo dropdown('customerID', 'customer', 'customer_fullname', 'id','','',array('-- PILIH CUSTOMER --'=>$customerID))?>
            </div>
	    <div class="form-group">
                <label for="date">TANGGAL <?php echo form_error('tanggal') ?></label>
                <input type="text" class="form-control" id="datepicker-autoClose" name="tanggal" placeholder="tanggal" value="<?php echo $tanggal;?>"/>
            </div>
	    <div class="form-group">
                <label for="keterangan">KETERANGAN <?php echo form_error('keterangan') ?></label>
                <textarea class="form-control" rows="3" name="keterangan" id="keterangan" placeholder="keterangan"><?php echo $keterangan; ?></textarea>
            </div>
	    <div class="form-group">
                <label for="enum">STATUS DATA <?php echo form_error('status_data') ?></label>
                <select name="status_data" id="status_data" class="form-control selectpicker" data-size="10" data-live-search="true" data-style="btn-white">
                    <option value="<?php echo $status_data; ?>">-- SET STATUS DATA --</option>
                    <option value="approved">APPROVED</option>
                    <option value="pending">PENDING</option>
                    <option value="cancel">CANCEL</option>
                </select>
            // *** This is for the dropdown
            if (isset($_POST['convertFrom'])) {
                $toKey = $_POST['convertFrom'];
            }
            // *** This is for the dropdown
            if (isset($_POST['convertTo'])) {
                $fromKey = $_POST['convertTo'];
            }
        }
    }
    $convertObj = new CurrencyConvert();
    $result = $convertObj->currencyConvert($amount, $from, $to);
}
// *** Make dropdowns
$fromSelect = dropdown($selectArray, $fromKey);
$toSelect = dropdown($selectArray, $toKey);
function dropdown($assocArray, $selectedId = 0, $addBlank = false)
{
    $HTMLOptions = '';
    if ($assocArray) {
        if ($addBlank) {
            $HTMLOptions = '<option></option>';
        }
        foreach ($assocArray as $id => $name) {
            $selected = '';
            if ($selectedId == $id && $selectedId != '') {
                $selected = 'selected="selected"';
            }
            $HTMLOptions .= '<option value="' . $id . '" ' . $selected . '>' . $name . '</option>';
        }
    } else {
Exemple #8
0
function plugin_barcode_MassiveActionsFieldsDisplay($options = array())
{
    $table = $options['options']['table'];
    $field = $options['options']['field'];
    $linkfield = $options['options']['linkfield'];
    if ($table == getTableForItemType($options['itemtype'])) {
        // Table fields
        switch ($table . "." . $field) {
            case 'glpi_plugin_example.serial':
                echo "Not really specific - Just for example&nbsp;";
                Html::autocompletionTextField($linkfield, $table, $field);
                // Need to return true if specific display
                return true;
        }
    } else {
        // Linked Fields
        switch ($table . "." . $field) {
            case "glpi_plugin_example_dropdowns.name":
                echo "Not really specific - Just for example&nbsp;";
                dropdown($table, $linkfield, 1, $_SESSION["glpiactive_entity"]);
                // Need to return true if specific display
                return true;
        }
    }
    // Need to return false on non display item
    return false;
}
        <div class="form-group">
            <label for="int">SUPIR <?php 
echo form_error('sopir_id');
?>
</label>
            <?php 
echo dropdown('sopir_id', 'sopir', 'sopir_nama', 'sopir_id', 4, '', $sopir_id);
?>
        </div>
        <div class="form-group">
            <label for="int">PILIH KENDARAAN <?php 
echo form_error('kendaraan_id');
?>
</label>
            <?php 
echo dropdown('kendaraan_id', 'kendaraan', 'kendaraan_platnomor', 'kendaraan_id', 5, '', $kendaraan_id);
?>
            </div>
    <!--    <div class="form-group">
            <label for="date">TANGGAL MULAI <?php 
echo form_error('transaksi_tglmulai');
?>
</label>
            <input type="text" class="form-control" name="transaksi_tglmulai" id="transaksi_tglmulai" placeholder="transaksi_tglmulai" value="<?php 
echo $transaksi_tglmulai;
?>
" />
        </div> -->
        <div class="form-group">
            <label for="date">TANGGAL SELESAI <?php 
echo form_error('transaksi_tglselesai');
Exemple #10
0
 function dropdown_usr()
 {
     echo dropdown('users', 'userid', 'username', "where idlevel<>'1' order by username", $this->session->userdata('userid'));
 }
Exemple #11
0
 $field_dropdown = '';
 if ($_SESSION['permission'] == 'admin') {
     $sql = "select id,title from files where uId=" . $opt['uId'];
 } else {
     $sql = "select id,title from files where uId=" . $_SESSION['userId'];
 }
 $stmt = $pdo->query($sql);
 if ($stmt->rowCount()) {
     $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
     $file_dropdown = dropdown($rows, 'file', 'title', 'id', $opt['file']);
 }
 $sql = "select id,title from field";
 $stmt = $pdo->query($sql);
 if ($stmt->rowCount()) {
     $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
     $field_dropdown = dropdown($rows, 'field', 'title', 'id');
 }
 if ($_GET['lang'] == 'fa') {
     $class = 'fa_article_add';
     $title = 'ثبت مقاله جدید';
     $article_title = 'عنوان مقاله';
     $article_title_desc = '(فقط می تواند شامل حروف و عدد و فاصله باشد)';
     $abstract = 'چکیده مقاله';
     $more_authors = 'سایر نویسندگان';
     $more_authors_desc = '(درصورت گروهی بودن مقاله نام سایر نویسندگان را وارد نمایید)';
     $keywords = 'کلمات کلیدی';
     $keywords_desc = '(میتوانید کلمات مختلف را با - از هم جدا نمایید، حداکثر پنج کلمه)';
     $article_file = 'فایل مقاله';
     $article_file_desc = '(فایل مربوط به مقاله را که قبلا آپلود کردید را انتخاب نمایید)';
     $field = 'رشته';
     $field_desc = '(رشته های مربوط به مقاله خود را انتخاب نمایید)';
Exemple #12
0
function active_semesters($memberID)
{
    global $CHOIR;
    if (!$CHOIR) {
        die("Choir is not set");
    }
    $table = "<style>table.semesters { width: auto; } table.semesters td { padding: 2px 10px; } select.section { margin-bottom: 0px; width: 10em; }</style><table class='semesters'><tr><th>Semester</th><th>Status</th><th>Section</th><th>Score</th></tr>";
    $query = mysql_query("select `semester` from `semester` order by `beginning` asc");
    while ($result = mysql_fetch_array($query)) {
        $activebtn = 0;
        $semester = $result['semester'];
        $query1 = mysql_query("select `enrollment` from `activeSemester` where `member` = '{$memberID}' and `semester` = '{$semester}' and `choir` = '{$CHOIR}'");
        $active = mysql_num_rows($query1);
        if ($active) {
            $result1 = mysql_fetch_array($query1);
            $enrollment = $result1['enrollment'];
            if ($enrollment == "club") {
                $activebtn = 1;
            } else {
                if ($enrollment == "class") {
                    $activebtn = 2;
                } else {
                    die("Invalid enrollment state");
                }
            }
        }
        $table .= "<tr data-semester='{$semester}'><td>{$semester}</td><td><div class='btn-group' data-toggle='buttons-radio'>" . "<button class='btn btn-small semesterbutton" . ($activebtn == 0 ? ' active' : '') . "' data-val='0'>Inactive</button>" . "<button class='btn btn-small semesterbutton" . ($activebtn == 1 ? ' active' : '') . "' data-val='1'>Club</button>" . "<button class='btn btn-small semesterbutton" . ($activebtn == 2 ? ' active' : '') . "' data-val='2'>Class</button>" . "</div></td><td>" . dropdown(sections(), "section", $active ? sectionFromEmail($memberID, false, $semester) : 0, !$active) . "</td>" . "<td>" . ($active ? "<span>" : "<span style='color: gray'>") . attendance($memberID, 0, $semester) . "</span></td></tr>";
    }
    $table .= "</table>";
    return $table;
}
Exemple #13
0
     $show = show($dir . "/form_cw", array("head" => _cw_admin_head, "datum" => _datum, "gegner" => _cw_head_gegner, "xonx" => _cw_head_xonx, "liga" => _cw_head_liga, "screen_info" => _cw_screens_info, "nothing" => "", "preview" => _preview, "screenshot1" => _cw_screenshot . " 1", "screenshot2" => _cw_screenshot . " 2", "screenshot3" => _cw_screenshot . " 3", "screenshot4" => _cw_screenshot . " 4", "screens" => _cw_screens, "gametype" => _cw_head_gametype, "url" => _url, "clantag" => _cw_admin_clantag, "lineup_info" => _cw_admin_lineup_info, "bericht" => _cw_bericht, "result" => _cw_head_result, "info" => _cw_admin_info, "gegnerstuff" => _cw_admin_gegnerstuff, "warstuff" => _cw_admin_warstuff, "maps" => _cw_admin_maps, "serverip" => _cw_admin_serverip, "servername" => _server_name, "serverpwd" => _server_password, "match_admins" => _cw_head_admin, "lineup" => _cw_head_lineup, "glineup" => _cw_head_glineup, "do" => "add", "what" => _button_value_add, "cw_clantag" => "", "cw_gegner" => "", "cw_url" => "", "logo" => _cw_logo, "cw_xonx1" => "", "cw_xonx2" => "", "cw_maps" => "", "cw_servername" => "", "cw_serverip" => "", "cw_serverpwd" => "", "cw_punkte" => "", "cw_gpunkte" => "", "cw_matchadmins" => "", "cw_lineup" => "", "cw_glineup" => "", "cw_bericht" => "", "dropdown_date" => $dropdown_date, "dropdown_time" => $dropdown_time, "hour" => "", "minute" => "", "name" => _member_admin_squad, "squad_info" => _cw_admin_head_squads, "game" => _member_admin_game, "squads" => $squads, "cw_liga" => "", "country" => _cw_admin_head_country, "countrys" => show_countrys(), "cw_gametype" => ""));
 } elseif ($_GET['do'] == "edit") {
     $qry = db("SELECT * FROM " . $db['cw'] . "\n                   WHERE id = '" . intval($_GET['id']) . "'");
     $get = _fetch($qry);
     list($xonx1, $xonx2) = explode('on', $get['xonx']);
     $qrym = db("SELECT * FROM " . $db['squads'] . "\n                    WHERE status = '1'\n                    ORDER BY game");
     while ($gets = _fetch($qrym)) {
         if ($get['squad_id'] == $gets['id']) {
             $sel = "selected=\"selected\"";
         } else {
             $sel = "";
         }
         $squads .= show(_cw_edit_select_field_squads, array("id" => $gets['id'], "name" => re($gets['name']), "game" => re($gets['game']), "sel" => $sel, "icon" => $gets['icon']));
     }
     $dropdown_date = show(_dropdown_date, array("day" => dropdown("day", date("d", $get['datum'])), "month" => dropdown("month", date("m", $get['datum'])), "year" => dropdown("year", date("Y", $get['datum']))));
     $dropdown_time = show(_dropdown_time, array("hour" => dropdown("hour", date("H", $get['datum'])), "minute" => dropdown("minute", date("i", $get['datum'])), "uhr" => _uhr));
     $show = show($dir . "/form_cw", array("head" => _cw_admin_head_edit, "datum" => _datum, "gegner" => _cw_head_gegner, "xonx" => _cw_head_xonx, "preview" => _preview, "nothing" => _cw_nothing, "screenshot1" => _cw_new . " " . _cw_screenshot . " 1", "screenshot2" => _cw_new . " " . _cw_screenshot . " 2", "screenshot3" => _cw_new . " " . _cw_screenshot . " 3", "screenshot4" => _cw_new . " " . _cw_screenshot . " 4", "screens" => _cw_screens, "liga" => _cw_head_liga, "screen_info" => _cw_screens_info, "gametype" => _cw_head_gametype, "url" => _url, "clantag" => _cw_admin_clantag, "bericht" => _cw_bericht, "result" => _cw_head_result, "info" => _cw_admin_info, "gegnerstuff" => _cw_admin_gegnerstuff, "warstuff" => _cw_admin_warstuff, "maps" => _cw_admin_maps, "match_admins" => _cw_head_admin, "lineup" => _cw_head_lineup, "glineup" => _cw_head_glineup, "serverip" => _cw_admin_serverip, "lineup_info" => _cw_admin_lineup_info, "servername" => _server_name, "serverpwd" => _server_password, "do" => "editcw&amp;id=" . $_GET['id'] . "", "what" => _button_value_edit, "cw_clantag" => re($get['clantag']), "cw_gegner" => re($get['gegner']), "cw_url" => $get['url'], "cw_xonx1" => $xonx1, "logo" => _cw_logo, "cw_xonx2" => $xonx2, "cw_maps" => re($get['maps']), "cw_matchadmins" => re($get['matchadmins']), "cw_lineup" => re($get['lineup']), "cw_glineup" => re($get['glineup']), "cw_servername" => re($get['servername']), "cw_serverip" => $get['serverip'], "cw_serverpwd" => re($get['serverpwd']), "cw_punkte" => $get['punkte'], "cw_gpunkte" => $get['gpunkte'], "cw_bericht" => re_bbcode($get['bericht']), "day" => date("d", $get['datum']), "dropdown_date" => $dropdown_date, "dropdown_time" => $dropdown_time, "month" => date("m", $get['datum']), "year" => date("Y", $get['datum']), "hour" => date("H", $get['datum']), "minute" => date("i", $get['datum']), "name" => _member_admin_squad, "countrys" => show_countrys($get['gcountry']), "squad_info" => _cw_admin_head_squads, "game" => _member_admin_game, "squads" => $squads, "cw_liga" => re($get['liga']), "country" => _cw_admin_head_country, "cw_gametype" => re($get['gametype'])));
 } elseif ($_GET['do'] == "add") {
     if (empty($_POST['gegner']) || empty($_POST['clantag']) || empty($_POST['t'])) {
         if (empty($_POST['gegner'])) {
             $show = error(_cw_admin_empty_gegner, 1);
         } elseif (empty($_POST['clantag'])) {
             $show = error(_cw_admin_empty_clantag, 1);
         } elseif (empty($_POST['t'])) {
             $show = error(_empty_datum, 1);
         }
     } else {
         if (empty($_POST['xonx1']) && empty($_POST['xonx2'])) {
             $xonx = "";
         } else {
             $xonx = "`xonx` = '" . $_POST['xonx1'] . "on" . $_POST['xonx2'] . "',";
Exemple #14
0
    $zlb->Header('100%');
    $zlb->icon();
    echo "</tbody></table>";
} else {
    no_auth();
}
panel_multi_end();
loading_ajax();
popup_full();
terbilang();
?>
<input type='hidden' id='ordby' value='' class='w100'/>
<input type='hidden' id='totdata' value='<?php 
echo !empty($list) ? count($list) : 0;
?>
' />
<input type='hidden' id='otor' value='<?php 
echo $all_member__member_list;
?>
' />
<script language="javascript">
	$(document).ready(function(e) {
		$('#dept').html("<option value='all'>Semua</option>");
        $('#dept').append("<?php 
dropdown('mst_departemen', 'id', 'departemen', "order by Kode");
?>
")
		$('#dept').val('').select();
    });
</script>
<div class='col-lg-12'>
        <h2 style="margin-top:0px">Tarif <?php 
echo $button;
?>
</h2>
        <form action="<?php 
echo $action;
?>
" method="post">
	    <div class="form-group">
                <label for="int">KENDARAAN <?php 
echo form_error('kendaraan_id');
?>
</label>
                <?php 
echo dropdown('kendaraan_id', 'kendaraan', 'kendaraan_platnomor', 'kendaraan_id', 12);
?>
            </div>
	    <div class="form-group">
                <label for="int">TARIF PERHARI <?php 
echo form_error('tarif_perhari');
?>
</label>
                <input type="text" class="form-control" name="tarif_perhari" id="tarif_perhari" placeholder="TARIF PERHARI" value="<?php 
echo $tarif_perhari;
?>
" />
            </div>
	    <div class="form-group">
                <label for="int">TARIF OVERTIME <?php 
echo form_error('tarif_overtime');
</textarea>

                        </li>
                        <li>
                            <label  class="desc">
                                Status
                            </label>
                            <?php 
$status_opt[''] = 'Select';
$status_opt['0'] = 'Inactive';
$status_opt['1'] = 'Active';
$attr['name'] = 'status';
$attr['id'] = 'status';
$attr['size'] = '1';
$attr['class'] = 'field text small';
echo dropdown($attr, $status_opt, $status);
?>


                        </li>

                        <li>
                            <div>
                                <input name="submit" type="submit" class="ui-state-default ui-corner-all ui-button" value="Save" />&nbsp;&nbsp;<input name="button" type="button" class="ui-state-default ui-corner-all ui-button" onclick='if (confirm("Are you sure you want to cancel?\n\nThis will cancel any changes you have made and not yet saved!")) {
            document.location.href = "index.php?p=list_site_menu"
        }' value="Cancel" />
                            </div>
                        </li>
                    </ul>
                </form>
                <div class="clear"></div>
Exemple #17
0
link_js('auto_sugest.js,lap_jual.js,jquery.fixedheader.js', 'asset/js,' . $path . '/js,asset/js');
panel_begin('Detail Penjualan');
panel_multi('detailpenjualan', 'block', false);
if ($all_detailpenjualan != '') {
    echo "<form id='frm1' name='frm1' method='post' action=''>";
    addText(array('Periode  :', ' s/d ', 'Jenis Penjualan', ''), array("<input type='text' id='dari_tgl' name='dari_tgl' value='" . date('d/m/Y') . "'>", "<input type='text' id='sampai_tgl' name='sampai_tgl' value=''>", "<select id='id_jenis' name='id_jenis'></select>", "<!--input type='button' value='OK' id='okelah'-->"));
    addText(array('Order by :', 'Sort by', '', ''), array("<select id='orderby' name='orderby'>" . selectTxt('susunanjual', false, 'asset/bin/zetro_member.frm') . "</select>", "<select id='urutan' name='urutan'>" . selectTxt('Urutan', true) . "</select>", "<input type='checkbox' id='show_de' name='show_de' checked='checked' value='detail' style='display:none'>", "<input type='button' value='OK' id='okedech'/>"));
    echo "</form>";
    echo "</tbody></table>";
    echo "<table id='xx' width='100%'><tbody><tr><td>&nbsp;</td></tr></tbody></table>";
} else {
    no_auth();
}
panel_multi_end();
auto_sugest();
panel_end();
?>
<input type='hidden' value="<?php 
echo $this->session->userdata('menus');
?>
" id='aktif'/>
<script language="javascript">
$(document).ready(function(e) {
	$('#id_jenis').html("<option value=''>Semua</option><?php 
dropdown('inv_penjualan_jenis', 'ID', 'Jenis_Jual', '', '');
?>
");
    $('#detailpenjualan').removeClass('tab_button');
	$('#detailpenjualan').addClass('tab_select');
});
</script>
Exemple #18
0
  echo "    </TD>\n";
  echo "  </TR>\n";
  echo "  <TR BGCOLOR=\"$color_line1\">\n"; 
  echo "    <TD>$l_shields</TD>\n";
  echo "    <td align=center>".NUMBER($shields_upgrade_cost)."</TD>\n";
  echo "    <td align=center>" . NUMBER($shipinfo[shields]) . "</TD>\n";
  echo "    <td align=center>";
  echo dropdown("shields_upgrade",$shipinfo[shields],$shipinfo[maxshields]);
  echo "    </TD>\n";      
  echo "  </TR>\n";
  echo "  <TR BGCOLOR=\"$color_line2\">\n";
  echo "    <TD>$l_cloak</TD>\n";
  echo "    <td align=center>".NUMBER($cloak_upgrade_cost)."</TD>\n";
  echo "    <td align=center>" . NUMBER($shipinfo[cloak]) . "</TD>\n";
  echo "    <td align=center>";
  echo dropdown("cloak_upgrade",$shipinfo[cloak],$shipinfo[maxcloak]);
  echo "    </TD>\n";
  echo "  </TR>\n";
 
  echo " </TABLE>\n";  
  echo " <BR>\n";
  echo " <TABLE WIDTH=\"100%\" BORDER=0 CELLSPACING=0 CELLPADDING=0>\n";
  echo "  <TR BGCOLOR=\"$color_header\">\n";
  echo "    <TD><B>$l_item</B></TD>\n";
  echo "    <TD align=center><B>$l_cost</B></TD>\n";
  echo "    <TD align=center><B>On Ship</B></TD>\n";
  echo "    <TD align=center><B>$l_max</B></TD>\n";
  echo "    <TD align=center><B>#</B></TD>\n";
  echo "  </TR>\n";
  echo "  <TR BGCOLOR=\"$color_line1\">\n";
  echo "    <TD>$l_fighters</TD>\n";
Exemple #19
0
 }
 list($steamid1, $steamid2, $steamid3) = explode(':', $get['steamid']);
 list($bdayday, $bdaymonth, $bdayyear) = explode('.', $get['bday']);
 if ($_GET['show'] == "gallery") {
     $qrygl = db("SELECT * FROM " . $db['usergallery'] . "\n                     WHERE user = '******'\n                     ORDER BY id DESC");
     while ($getgl = _fetch($qrygl)) {
         $pic = show(_gallery_pic_link, array("img" => $getgl['pic'], "user" => $userid));
         $delete = show(_gallery_deleteicon, array("id" => $getgl['id']));
         $edit = show(_gallery_editicon, array("id" => $getgl['id']));
         $class = $color % 2 ? "contentMainSecond" : "contentMainFirst";
         $color++;
         $gal .= show($dir . "/edit_gallery_show", array("picture" => img_size("inc/images/uploads/usergallery" . "/" . $userid . "_" . $getgl['pic']), "beschreibung" => bbcode($getgl['beschreibung']), "class" => $class, "delete" => $delete, "edit" => $edit));
     }
     $show = show($dir . "/edit_gallery", array("galleryhead" => _gallery_head, "pic" => _gallery_pic, "new" => _gallery_edit_new, "del" => _deleteicon_blank, "edit" => _editicon_blank, "beschr" => _gallery_beschr, "showgallery" => $gal));
 } else {
     $dropdown_age = show(_dropdown_date, array("day" => dropdown("day", $bdayday, 1), "month" => dropdown("month", $bdaymonth, 1), "year" => dropdown("year", $bdayyear, 1)));
     $qrycustom = db("SELECT * FROM " . $db['profile'] . "\n\t  \t\t  \t\t           WHERE kid = '1' AND shown = '1'\n                         ORDER BY id ASC");
     while ($getcustom = _fetch($qrycustom)) {
         $qrycontent = db("SELECT " . $getcustom['feldname'] . " FROM " . $db['users'] . "\n\t  \t\t\t  \t              WHERE id = '" . $userid . "'\n\t\t\t\t\t\t                LIMIT 1");
         $getcontent = _fetch($qrycontent);
         $custom_about .= show(_profil_edit_custom, array("name" => re(pfields_name($getcustom['name'])) . ":", "feldname" => $getcustom['feldname'], "value" => re($getcontent[$getcustom['feldname']])));
     }
     $qrycustom = db("SELECT * FROM " . $db['profile'] . "\n\t  \t           \t\t\t   WHERE kid = '3' AND shown = '1'\n                         ORDER BY id ASC");
     while ($getcustom = _fetch($qrycustom)) {
         $qrycontent = db("SELECT " . $getcustom['feldname'] . " FROM " . $db['users'] . "\n\t  \t\t        \t\t        WHERE id = '" . $userid . "'\n\t\t\t\t\t\t                LIMIT 1");
         $getcontent = _fetch($qrycontent);
         $custom_contact .= show(_profil_edit_custom, array("name" => re(pfields_name($getcustom['name'])) . ":", "feldname" => $getcustom['feldname'], "value" => re($getcontent[$getcustom['feldname']])));
     }
     $qrycustom = db("SELECT * FROM " . $db['profile'] . "\n\t  \t          \t\t\t   WHERE kid = '4' AND shown = '1'\n                         ORDER BY id ASC");
     while ($getcustom = _fetch($qrycustom)) {
         $qrycontent = db("SELECT " . $getcustom['feldname'] . " FROM " . $db['users'] . "\n\t  \t\t        \t\t        WHERE id = '" . $userid . "'\n\t\t\t\t\t\t                LIMIT 1");
Exemple #20
0
}
$groups['members']['ops']['donor'] = $lang['grouppm_donor'];
$groups['members']['ops']['all_users'] = $lang['grouppm_allusers'];
$groups['friends'] = array("opname" => $lang['grouppm_related'], "minclass" => UC_USER, "ops" => array("all_friends" => $lang['grouppm_friends']));
function dropdown()
{
    global $CURUSER, $groups;
    $r = "<select class='form-control' multiple=\"multiple\" name=\"groups[]\"  size=\"11\" style=\"padding:5px; width:180px;\">";
    foreach ($groups as $group) {
        if ($group["minclass"] >= $CURUSER["class"]) {
            continue;
        }
        $r .= "<optgroup label=\"" . $group["opname"] . "\">";
        $ops = $group["ops"];
        foreach ($ops as $k => $v) {
            $r .= "<option value=\"" . $k . "\">" . $v . "</option>";
        }
        $r .= "</optgroup>";
    }
    $r .= "</select>";
    return $r;
}
$HTMLOUT .= "<div class='row'><div class='col-md-12'>";
if (sizeof($err) > 0) {
    $class = stristr($err[0], "sent!") == true ? "sent" : "notsent";
    $errs = "<ul><li>" . join("</li><li>", $err) . "</li></ul>";
    $HTMLOUT .= "<div class=\"" . $class . "\">{$errs}</div>";
}
$HTMLOUT .= "<fieldset style='border:1px solid #333333; padding:5px;'>\n\t<legend style='padding:3px 5px 3px 5px; border:solid 1px #333333; font-size:12px;font-weight:bold;'>{$lang['grouppm_head']}</legend>\n\t<form action='staffpanel.php?tool=grouppm&amp;action=grouppm' method='post'>\n\t  <table class=table table-bordered'>\n\t\t<tr>\n\t\t  <td nowrap='nowrap' align='left' colspan='2'><b>{$lang['grouppm_sub']}</b> &nbsp;&nbsp;\n\t\t\t<input type='text' name='subject' size='30' style='width:300px;'/></td>\n\t\t</tr>\n\t\t<tr>\n\t\t  <td nowrap='nowrap' valign='top' align='left'><b>{$lang['grouppm_body']}</b></td>\n\t\t  <td nowrap='nowrap' align='left'><b>{$lang['grouppm_groups']}</b></td>\n\t\t  </tr>\n\t\t<tr>\n\t\t  <td width='100%' align='center'><textarea name='message' rows='5' cols='32' style='width:500px; height:155px'></textarea></td>\n\t\t  <td width='100%' >" . dropdown() . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t <td align='left'><label for='sys'>{$lang['grouppm_sendas']}</label><input id='sys' type='checkbox' name='system' value='yes' /></td><td align='right' ><input class='btn btn-default' type='submit' value='{$lang['grouppm_send']}' /></td>\n\t\t</tr>\n\t  </table>\n\t</form>\n\t</fieldset>";
$HTMLOUT .= "</div></div><br>";
echo stdhead($lang['grouppm_stdhead']) . $HTMLOUT . stdfoot();
Exemple #21
0
function semesterDropdown()
{
    global $SEMESTER;
    return dropdown(semesters(), "semester", $SEMESTER);
}
Exemple #22
0
panel_multi_end();
panel_multi('nilaitaksir');
?>
<div id='chartdiv2'></div>
<?php 
panel_multi_end();
panel_end();
?>
<input type='text' value='<?php 
echo $prs;
?>
' id='prs' /><input type='text' value='' id='lnk' />
<script language='javascript'>
$(document).ready(function(e) {
    $('#thn').html("<?php 
dropdown("spb", "distinct(year(tgl_spb)) as thn", '', '', $thn);
?>
");
});
function show_graph(id){
		   var chart = new FusionCharts("<?php 
echo base_url();
?>
chart/FCF_Column2D.swf", "ChartId", "600", "350");
		   chart.setDataURL("<?php 
echo base_url() . $this->session->userdata('userid');
?>
_graph.xml");		
		  	 chart.render(id);
}
</script>
 function BuildGrid($button = true)
 {
     $bl = new zetro_listBuilder();
     $jml = $this->Count($this->section, $this->path);
     for ($rw = 1; $rw <= $this->row; $rw++) {
         echo "<tr class='' align='' id='r-" . $rw . "'>\n\r\n\t\t\t  <td class='kotak' align='center'>\r\n\t\t\t  <span id='s-{$rw}' style='display:block'>{$rw}</span>\r\n\t\t\t  <span id='e-{$rw}' style='display:none'><img src='" . base_url() . "asset/images/no.png' id='l-{$rw}' class='del' style='cursor:pointer'></span></td>\n";
         for ($i = 1; $i <= $jml; $i++) {
             $fld = explode(",", $this->rContent($this->section, "{$i}", $this->path));
             $tp = explode(" ", $fld[2]);
             echo "<td class='kotak' style='padding-right:3px'>";
             switch ($fld[1]) {
                 case 'input':
                     echo "<" . $fld[1] . " type='" . $tp[0] . "' id='" . $rw . '__' . $fld[3] . "' name='" . $rw . '__' . $fld[3] . "' value='" . $fld[5] . "' class='" . $fld[4] . "' abbr='{$rw}'>";
                     break;
                 case 'select':
                 case 'select':
                     echo "<" . $fld[1] . " id='" . $rw . '__' . $fld[3] . "' name='" . $rw . '__' . $fld[3] . "' class='" . $fld[4] . "'>";
                     if (count($fld) >= 9) {
                         if ($fld[7] == 'RS') {
                             echo "<option></option>";
                             for ($x = 1; $x <= $this->Count($fld[8], $this->path); $x++) {
                                 $data = explode(",", $this->rContent($fld[8], $x, $this->path));
                                 echo "<option value='" . $data[0] . "'>" . $data[1] . "</option>\n\r";
                             }
                         } else {
                             if ($fld[7] == 'RD') {
                                 $data = explode("-", $fld[8]);
                                 dropdown($data[0], $data[1], $data[2], $data[3]);
                             }
                         }
                     }
                     echo "</select>";
             }
             echo "</td>\n";
         }
         echo $button == true ? "<td class='kotak'>" . $bl->event('dt-' . $rw, '', $this->button) . "</td>\n" : '';
         echo "</tr>";
     }
 }
Exemple #24
0
 function field_inline($n = '', $isi = '')
 {
     $this->tipe = '';
     $this->isi = $isi;
     $ad = '';
     $fld = explode(",", $this->zn->rContent($this->section, $n, $this->filename));
     $tp = explode(" ", $fld[2]);
     //if ($fld[1]!='')
     switch ($fld[1]) {
         case 'input':
             $this->tipe = "<" . $fld[1] . " type='" . $tp[0] . "' id='" . $this->nomor . '-' . $fld[3] . "' name='" . $this->nomor . '-' . $fld[3] . "' value='" . $this->isi . "' class='" . $fld[4] . "'>" . $ad . $this->event($this->nomor . '-' . $this->section . '-' . str_replace(' ', '_', $fld[3]), '', $this->jenis);
             break;
         case 'select':
             $this->tipe = "<" . $fld[1] . " id='" . $fld[3] . "' name='" . $fld[3] . "' class='" . $fld[4] . "'>";
             if (count($fld) >= 9) {
                 if ($fld[7] == 'RS') {
                     $this->tipe .= "<option></option>";
                     for ($x = 1; $x <= $this->Count($fld[8], $this->path); $x++) {
                         $data = explode(",", $this->rContent($fld[8], $x, $this->path));
                         $this->tipe .= "<option value='" . $data[0] . "'>" . $data[1] . "</option>\n\r";
                     }
                 } else {
                     if ($fld[7] == 'RD') {
                         $data = explode("-", $fld[8]);
                         dropdown($data[0], $data[1], $data[2], $data[3]);
                     }
                 }
             }
             $this->tipe .= "</select>" . $ad;
             break;
         case 'textarea':
             $this->tipe = "<" . $fld[1] . " id='" . $fld[3] . "' name='" . $fld[3] . "' class='" . $fld[4] . "'></textarea>" . $ad;
             break;
         case 'button':
             //echo "<".$fld[1]." type='".$fld[2]."' id='".$fld[3]."' value='".$fld[5]."' class='".$fld[4]."'></td>";
             break;
     }
     return $this->tipe;
 }
    echo "<td>" . $series_array[$i]->title . "</td>";
    echo "<td>" . $series_array[$i]->season . "</td>";
    echo "<td>" . $series_array[$i]->description . "</td>";
    echo "<td><img src='" . $series_array[$i]->picture . "' width='200px'></td>";
    echo "<td><a href='?add=" . $series_array[$i]->id . "'>Lisa</a></td>";
    if (isset($_GET["add"]) && $series_array[$i]->id == $_GET["add"]) {
        echo "<td>";
        ?>
							
							<form method="post">
								<input type="hidden" name="add" value="<?php 
        echo $_GET["add"];
        ?>
" type="text">
								<?php 
        echo dropdown($_GET["add"]);
        ?>
								<input type="submit" name="createList" value="Submit">
							</form>

						<?php 
        echo "</td>";
    }
    echo "</tr>";
    echo "</tbody>";
}
?>
</table>
</br>
</br>
</br>
Exemple #26
0
?>
<script language='javascript'>
$(document).ready(function(e) {
	var today= new Date();
	var bln='<?php 
echo date('m');
?>
';//today.getMonth();
	lock('#no_spb');
	(bln.length==0)? xx='0'+bln:xx=bln;
 	$('#no_spb').val('<?php 
echo $no_spb;
?>
/SPB/'+xx+'/'+today.getFullYear());
   $('#nama_spb').focus().select();
   //$('#id_barang').html("<?php 
dropdown('material', 'nmbarang', 'nmbarang', 'order by nmbarang');
?>
");
});
</script>
<span id='addlevel' style=" display:none; "><input type="button" id='addlvl' value='+' title='Tambah Jenis Barang' /></span>
<div class="autosuggest" id="autosuggest_list"></div>
<div id='terbilang' style='left:0px;top:0px;position:fixed; display:none;color:#000000'></div>
<div id='info' align='center'>
<div class='j_info' align="left">Information</div>
<div id='txtmsg'></div><hr />
<span><input type='button' id='ok' value='OK' /></span><br />
</div>

Exemple #27
0
     echo "    <td></td>\n";
 }
 echo "    <td>{$l_torp_launch}</td>\n";
 echo "    <td><input type=text readonly name=torp_launchers_costper class=\"port-cost-upgrades\" size=25 value='0' tabindex='0' {$onblur}></td>\n";
 echo "    <td>" . NUMBER($playerinfo['torp_launchers']) . "</td>\n";
 echo "    <td>\n       ";
 echo dropdown("torp_launchers_upgrade", $playerinfo['torp_launchers']);
 echo "    </td>\n";
 echo "  </tr>\n";
 echo "  <tr>\n";
 echo "    <td colspan=\"5\">&nbsp;</td>\n";
 echo "    <td>{$l_shields}</td>\n";
 echo "    <td><input type=text readonly name=shields_costper value='0' class=\"port-cost-upgrades\" size=25 tabindex='0' {$onblur}></td>\n";
 echo "    <td>" . NUMBER($playerinfo['shields']) . "</td>\n";
 echo "    <td>\n       ";
 echo dropdown("shields_upgrade", $playerinfo['shields']);
 echo "    </td>\n";
 echo "  </tr>\n";
 echo " </tbody></table>\n";
 ?>
 </div><div class="port-table-container">
 <?php 
 echo " <table><tbody>\n";
 echo "  <tr>\n";
 echo "    <td>{$l_item}</td>\n";
 echo "    <td>{$l_cost}</td>\n";
 echo "    <td>{$l_current}</td>\n";
 echo "    <td>{$l_max}</td>\n";
 echo "    <td>{$l_qty}</td>\n";
 echo "    <td>{$l_item}</td>\n";
 echo "    <td>{$l_cost}</td>\n";
Exemple #28
0
                    $min = $minneu;
                    $max = $maxneu;
                    $end = mysql_num_rows(db("SELECT * FROM " . $sql_prefix . "jokes WHERE date >= " . $min . " AND date < " . $max . " AND status != 0"));
                    $minneu = $min + 86400;
                    $maxneu = $max + 86400;
                }
                $date = $min;
            } elseif ($_POST['status'] == 2) {
                $status = 1;
                $date = mktime(0, 0, 0, $_POST['m'], $_POST['t'], $_POST['j']);
                $datemax = mktime(23, 59, 59, $_POST['m'], $_POST['t'], $_POST['j']);
                $kontrolle = mysql_num_rows(db("SELECT * FROM " . $sql_prefix . "jokes WHERE date >= " . $date . " AND date <= " . $datemax . " AND status != 0"));
            }
            if ($kontrolle != 0) {
                //kon
                $dropdown_date = show(_dropdown_date, array("day" => dropdown("day", $_POST['t']), "month" => dropdown("month", $_POST['m']), "year" => dropdown("year", $_POST['j'])));
                $do = show(_jokes_edit_link, array("id" => $_GET['id']));
                $options = '<table width="200"><tr>
		<td><label><input type="radio" name="status" value="0" id="status_1" ' . $checked1 . '/>' . _jokes_inaktiv . '</label></td>
	</tr><tr>
		<td><label><input type="radio" name="status" value="1" id="status_2" ' . $checked2 . '/>' . _jokes_nextdate . '</label></td>
	</tr><tr>
		<td><label><input type="radio" name="status" value="2" id="status_3" checked="checked"/>' . _jokes_thisdate . '</label></td>
	</tr></table>';
                $error = show("errors/errortable", array("error" => _jokes_date_forgiven));
                $index = show($dir . "/form", array("head" => _joke_edit, "nautor" => _autor, "dropdown_date" => $dropdown_date, "autor" => autor($userid), "status" => _status, "options" => $options, "ntitel" => _titel, "titel" => re($_POST['titel']), "joketext" => re_bbcode($_POST['jokes']), "error" => $error, "lang" => $language, "button" => _button_value_add, "linkname" => _linkname));
                //konende
            } else {
                $qry = db("INSERT INTO " . $sql_prefix . "jokes \n                       SET `uid`  = '" . (int) $userid . "',\n                           `title`    = '" . up($_POST['titel']) . "',\n                           `content`  = '" . up($_POST['jokes'], 1) . "',\n\t\t\t\t\t\t   `date`  = '" . $date . "',\n                           `status`   = '0'");
                $text = show(_jokes_msg, array("title" => up($_POST['titel']), "id" => mysql_insert_id(), "content" => up($_POST['jokes'], 1), "nick" => autor($userid)));
                $qry = db("SELECT s1.id FROM " . $db['users'] . " AS s1\n                 LEFT JOIN " . $db['permissions'] . " AS s2\n                 ON s1.id = s2.user\n                 WHERE s2.jokes = '1' OR s1.`level` LIKE '4' GROUP BY s1.`id`");
										
										<script language="Javascript">
											$('#dp1').datepicker('update');
											$('#dp2').datepicker('update');
										</script>
										
										</td>
										
										<td style="margin-top:2px;">
										<?php 
$res_date = $DB->query($sql_date);
$arr_date = array(__('Today', 'dashboard'), __('Yesterday', 'dashboard'), __('Last 7 days', 'dashboard'), __('Last 15 days', 'dashboard'), __('Last 30 days', 'dashboard'), __('Last 3 months', 'dashboard'));
$name = 'sel_date';
$options = $arr_date;
$selected = 0;
echo dropdown($name, $options, $selected);
?>
										
										</td>
										</tr>
										<tr><td height="15px"></td></tr>
										<tr>
											<td colspan="2" align="center">
												<button class="btn btn-primary btn-sm" type="submit" name="submit" value="Atualizar" ><i class="fa fa-search"></i>&nbsp; <?php 
echo __('Consult', 'dashboard');
?>
 </button>
												<button class="btn btn-primary btn-sm" type="button" name="Limpar" value="Limpar" onclick="location.href='<?php 
echo $url2;
?>
'" ><i class="fa fa-trash-o"></i>&nbsp; <?php 
Exemple #30
0
$zfm->BuildFormButton('Simpan', 'satuan');
popup_end();
popup_start('edit_barang', 'Edit Data', 550);
$zfm->Addinput("<input type='hidden' id='ID' name='ID' value=''/>");
$zfm->AddBarisKosong(true);
$zfm->Start_form(true, 'frm9');
$zfm->BuildForm($section, true, '100%');
$zfm->BuildFormButton('Simpan', 'edit_mat');
popup_end();
auto_sugest();
terbilang();
echo "<input type='hidden' value='" . date('d/m/Y') . "' id='today'>";
?>
<script language="javascript">
	$(document).ready(function(e) {
        $('#plh').html("<?php 
dropdown('inv_barang_kategori', 'ID', 'Kategori', 'order by Kategori');
?>
");
		$('#plh_jenis').html("<?php 
dropdown('inv_barang_jenis', 'ID', 'JenisBarang', 'order by JenisBarang');
?>
");
		//$('#v_listobat table#ListTable').fixedHeader({width:900,height:400})
	_show_data();
    });
</script>
<input type='hidden' id='id_kategori' value=''>
<input type='hidden' id='id_jenis' value=''>
<input type='hidden' id='id_satuan' value=''>