Exemplo n.º 1
0
function page($totalpage, $page, $link, $anchor)
{
    $varpaging = "";
    if ($totalpage > 1) {
        if (!is_numeric($page) || $page < $totalpage) {
            $intpage = 1;
        }
        //first page
        if ($intpage == 1) {
            $varpref = "<li><a href=\"" . $link . "&amp;p=1" . $anchor . "\">&laquo; PREV |</a></li>\n";
        } else {
            $countp = $intpage - 1;
            $varpref = "<li><a href=\"" . $link . "&amp;p=" . $countp . $anchor . "\">&laquo; PREV |</a></li>\n";
        }
        //end first page
        $varpaging = " <ul class=\"paging\">\n";
        $varpaging = $varpaging . $varpref;
        for ($i = 1; $i <= $totalpage; $i++) {
            $varpaging = $varpaging . "<li><a href=\"" . $link . "&amp;p=" . $i . $anchor . "\" " . is_selected($page, $i, "class=\"selected\"", "") . ">" . $i . "</a></li>\n";
        }
        //last page
        if ($intpage > $totalpage) {
            $varnext = "<li><a href=\"" . $link . "&amp;p=" . $totalpage . $anchor . "\">| NEXT &raquo;</a></li>\n";
        } else {
            $countn = $intpage + 1;
            $varnext = "<li><a href=\"" . $link . "&amp;p=" . $countn . $anchor . "\">| NEXT &raquo;</a></li>\n";
        }
        $varpaging = $varpaging . $varnext;
        //end last page
        $varpaging = $varpaging . "</ul>";
    }
    return $varpaging;
}
Exemplo n.º 2
0
		      <option value="2" <?php 
is_selected("2", $s2);
?>
><?php 
echo $BL['be_fsearch_all'];
?>
</option>
		      <option value="0" <?php 
is_selected("0", $s2);
?>
><?php 
echo $BL['be_fsearch_personal'];
?>
</option>
		      <option value="1" <?php 
is_selected("1", $s2);
?>
><?php 
echo $BL['be_fsearch_public'];
?>
</option>
              </select><img src="img/leer.gif" alt="" width="3" height="1" /></td>
		    <td><input name="submit" type="image" id="submit" src="img/button/go_search.gif" alt="<?php 
echo $BL['be_fsearch_startsearch'];
?>
" width="22" height="14" border="0" /></td>
		    </tr>
		  </table></td>
	</tr>
	<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td>
	</tr>
Exemplo n.º 3
0
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>

<tr>
	<td align="right" class="chatlist"><?php 
echo $BL['be_cnt_column'];
?>
:&nbsp;</td>
	<td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
		<tr>
			<td><select name="cimage_col" id="cimage_col">
<?php 
// list select menu for max image columns
for ($max_image_col = 1; $max_image_col <= 25; $max_image_col++) {
    echo '<option value="' . $max_image_col . '" ';
    is_selected($max_image_col, $content['image_list']['col']);
    echo '>' . $max_image_col . "</option>\n";
}
?>
				  </select></td>
				  <td class="chatlist">&nbsp;&nbsp;<?php 
echo $BL['be_cnt_imagespace'];
?>
:&nbsp;</td>
			      <td><input name="cimage_space" type="text" class="f11b width25" id="cimage_space" size="2" maxlength="3" onkeyup="if(!parseInt(this.value,10)) this.value='';" value="<?php 
echo empty($content['image_list']['space']) ? $template_default['imagegallery_default_space'] : $content['image_list']['space'];
?>
" /></td>
				  <td class="chatlist">&nbsp;px&nbsp;&nbsp;&nbsp;</td>

				  <td><input type="checkbox" name="cimage_random" id="cimage_random" value="1" <?php 
    ?>
:&nbsp;</td>
		<td><select name="dir_gallery" id="dir_gallery">
			<option value="0"<?php 
    is_selected(0, $dir_gallery);
    ?>
>-</option>
			<option value="2"<?php 
    is_selected(2, $dir_gallery);
    ?>
><?php 
    echo $BL['be_gallery_root'];
    ?>
</option>
			<option value="3"<?php 
    is_selected(3, $dir_gallery);
    ?>
><?php 
    echo $BL['be_gallery_directory'];
    ?>
</option>
		</select></td>
	</tr>


	<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8"></td></tr>

	<tr>
		<td align="right" class="v09">&nbsp;<?php 
    echo $BL['be_cnt_sorting'];
    ?>
Exemplo n.º 5
0
<?php 
// ----------------------------------------------------------------------------------------------------
// Список боевых союзов
$unions = EnumUnion($GlobalUser['player_id']);
if ($mission_acs && count($unions) > 0) {
    ?>

    <tr height="20">
     <td class="c" colspan="3">Боевые союзы</td>
  </tr>
  <tr height="20">
   <th colspan="3">
    <select name="union2" >
<?php 
    foreach ($unions as $i => $union) {
        echo "          <option value=\"" . $union['union_id'] . "\" " . is_selected($union['union_id']) . ">" . $union['name'] . "</option>\n";
    }
    ?>
           </select> 
      </th>
  </tr>

  <tr height="20">
  <th>&nbsp; </th>
  </tr>

<?php 
}
?>

<?php 
Exemplo n.º 6
0
<table>
<input type="hidden" name="kode_sk" id="kode_sk" size="3" value="<?php 
echo $kode_sk;
?>
">
<tr>
	<td>Lokasi</td><td>:</td>
	<td>
		<select name="kode_lokasi" id="kode_lokasi">
			<option value=""> -- Pilih -- </option>
			<?php 
$obj = $conn->Execute("SELECT KODE_LOKASI, LOKASI FROM LOKASI");
while (!$obj->EOF) {
    $ov = $obj->fields['KODE_LOKASI'];
    $on = $obj->fields['LOKASI'];
    echo "<option value='{$ov}' " . is_selected($ov, $kode_lokasi) . "> {$on}  </option>";
    $obj->movenext();
}
?>
		</select>
	</td>
</tr>

<tr>
	<td>Harga Tanah / m&sup2;</td><td>:</td>
	<td><input type="text" name="harga_tanah" id="harga_tanah" value="<?php 
if (!isset($harga_tanah)) {
    $harga_tanah = 0;
}
echo to_money(intval($harga_tanah));
?>
			<div class="order-step__section__block--time">

				<h3 class="order__section__sub-title">Spread visitors over time</h3>

				<!-- Spread over time selection; works with chosen.js -->
				<select data-placeholder="Select days" name="properties[spread]" class="chosen-select" style="width:350px;" tabindex="2">
					<option value=""></option>
					<?php 
    foreach ($days as $item) {
        ?>
						<option value="<?php 
        print trim($item->name);
        ?>
" <?php 
        print is_selected($_REQUEST['properties']['spread-over-time'], trim($item->name));
        ?>
><?php 
        print $item->name;
        ?>
</option>
					<?php 
    }
    ?>
				</select>
				<p class="extra--info"><i class="material-icons">info_outline</i>Choose between 1-30 days</p>

			</div>

			<div class="order-step__section__block--time">
Exemplo n.º 8
0
	<td><?php 
echo $id;
?>
</td>
</tr>
<tr>
	<td>App</td><td>:</td>
	<td>
		<select name="app_id" id="app_id">
			<option value=""> -- Pilih -- </option>
			<?php 
$obj = $conn->Execute("SELECT APP_ID, APP_NAME FROM APPLICATIONS ORDER BY APP_ID ASC");
while (!$obj->EOF) {
    $ov = $obj->fields['APP_ID'];
    $on = $obj->fields['APP_NAME'];
    echo "<option value='{$ov}' " . is_selected($ov, $app_id) . "> {$on} ({$ov}) </option>";
    $obj->movenext();
}
?>
		</select>
	</td>
</tr>
<tr>
	<td>Modul</td><td>:</td>
	<td><input type="text" name="modul_name" id="modul_name" size="50" value="<?php 
echo $modul_name;
?>
"></td>
</tr>
<tr>
	<td colspan="2"></td>
Exemplo n.º 9
0
"></td>
</tr>
<tr>
	<td colspan="3">Redistribusi SPP : 
	<select name="redistribusi" id="redistribusi">
		<option value="">   -- Redistribusi SPP --   </option>
		<option value="1" <?php 
echo is_selected('1', $redistribusi);
?>
>Tidak</option>
		<option value="2" <?php 
echo is_selected('2', $redistribusi);
?>
>Dalam Proses</option>
		<option value="3" <?php 
echo is_selected('3', $redistribusi);
?>
>Selesai</option>
	</select>
	<input type="text" name="tgl_redistribusi" id="tgl_redistribusi" size="10" class="apply dd-mm-yyyy" value="<?php 
echo $tgl_redistribusi;
?>
">
	</td>
</tr>
</table>

<table class="t-popup pad2 w100">
<tr>
	<td width="100" class="text-right">Keterangan </td><td>:</td>
	<td><textarea name="keterangan" id="keterangan" rows="2" cols="100"><?php 
?>
> Giro </option>
		<option value="4" <?php 
echo is_selected('4', $via);
?>
> Transfer </option>
		<option value="5" <?php 
echo is_selected('5', $via);
?>
> ATM </option>
		<option value="6" <?php 
echo is_selected('6', $via);
?>
> Kartu Debit </option>
		<option value="7" <?php 
echo is_selected('7', $via);
?>
> Kartu Kredit </option>
	</select>
	</td>
	-->
</tr>
<tr>
	<td colspan ="2">Catatan Collection : <textarea type="text" name="catatan" id="catatan" readonly="readonly" rows="3" cols="100"><?php 
echo $catatan;
?>
</textarea></td>
</tr>
<tr>
	<td colspan ="2">Catatan Kwitansi : <textarea type="text" name="catatan_kwt" id="catatan_kwt" rows="6" cols="100"><?php 
echo $catatan_kwt;
echo $pluginDesc;
?>
" size="64" maxlength="512" id="desc" name="desc" />
        </td>
    </tr><tr>
        <th style="width:30%;text-align:right;">
            Location:<br />
        </th>
        <td style="text-align:left;">
            <select id="location" name="location" multiple="multiple">
                <option value="/usr/local/nagios/libexec/" <?php 
echo is_selected($pluginLocation, '/usr/local/nagios/libexec/');
?>
>/usr/local/nagios/libexec/</option>
                <option value="/usr/lib/nagios/plugins/" <?php 
echo is_selected($pluginLocation, '/usr/lib/nagios/plugins/');
?>
>/usr/lib/nagios/plugins/</option>
                <option value=""></option>
            </select>
        </td>
    </tr><tr>
        <th style="width:30%;text-align:right;">
            File:
        </th>
        <td style="text-align:left;">
            <input type="file" id="file" name="file" />
        </td>
    </tr>
<?php 
if ($action == 'modify_plugin') {
Exemplo n.º 12
0
function teacher_list_select($current, $input_name = 'teacher', $input_id = 'teacher')
{
    echo "<select name=\"{$input_name}\" id=\"{$input_id}\">";
    $all_teachers = _get_teachers();
    foreach ($all_teachers as $teacher) {
        setup_userdata($teacher);
        echo '<option ' . is_selected(get_user_id() == $current) . ' value="' . get_user_id() . '">' . get_user_fullname() . '</option>';
    }
    echo "</select>";
}
Exemplo n.º 13
0
    ?>


	<p>
		<label><?php 
    echo $BL['be_priorize'];
    ?>
</label>
		<select name="cnt_prio" id="cnt_prio" style="width:auto" title="<?php 
    echo $BL['be_priorize'];
    ?>
">
		<?php 
    for ($x = 30; $x >= -30; $x--) {
        echo '	<option value="' . $x . '"';
        is_selected($x, $news->data['cnt_prio']);
        echo '>' . ($x == 0 ? $BL['be_cnt_default'] : $x) . '</option>' . LF;
    }
    ?>
		</select>
	</p>

	<div class="paragraph"><?php 
    $wysiwyg_editor = array('value' => $news->data['cnt_text'], 'field' => 'cnt_text', 'height' => '250px', 'width' => '536px', 'rows' => '10', 'editor' => $_SESSION["WYSIWYG_EDITOR"], 'lang' => 'en');
    include PHPWCMS_ROOT . '/include/inc_lib/wysiwyg.editor.inc.php';
    ?>
</div>

	<div class="paragraph filled border_bottom border_top">

		<table cellpadding="0" cellspacing="0" border="0" summary="">
Exemplo n.º 14
0
        <div class="content">
            <!--START MENU CATEGORIES-->
            <ul class="categories">
                <li class="main"><a href="#" class="selected"><?php 
echo $varmaincat;
?>
</a></li>

                <?php 
//fetch category list
$data_menu = get_category_list($type, 200, 1);
if ($data_menu["result"]) {
    foreach ($data_menu["result"] as $row) {
        $idcat = $row->id;
        $namecat = $row->category_name;
        echo "<li><a " . is_selected($idcat, $cat, "class=\"selected\"", "") . " href=\"/products/list/?type=" . $type . "&amp;cat=" . $idcat . "#wrapproduct\">" . $namecat . "</a></li>";
    }
}
//end fetch category list
?>
                       
            </ul>
            <!--END MENU CATEGORIES-->      

            <!--START PRODUCT ITEM-->
            <div class="wraplistitem">
                <ul class="productitem">
                    <?php 
$data = get_products_list($type, $cat, $rowspage, $p);
$maxpage = 1;
if (isset($data["maxpage"])) {
Exemplo n.º 15
0
"> Watt</td>
</tr>
<tr>
	<td>Jenis PPJB</td><td>: <input type="hidden" id="kode_jenis_ppjb" value="<?php 
echo $jenis_ppjb;
?>
"></td>
	<td>
	<select name="jenis_ppjb" id="jenis_ppjb">
		<option value=""> -- Jenis PPJB -- </option>
		<?php 
$obj = $conn->execute("\n\t\tSELECT *\n\t\tFROM \n\t\t\tCS_JENIS_PPJB\n\t\t");
while (!$obj->EOF) {
    $ov = $obj->fields['KODE_JENIS'];
    $on = $obj->fields['NAMA_JENIS'];
    echo "<option value='{$ov}'" . is_selected($ov, $jenis_ppjb) . "> {$on} ({$ov}) </option>";
    $obj->movenext();
}
?>
	</select>
	</td>
</tr>
<tr>
	<td>Catatan</td><td>:</td>
</tr>
<tr>
	<td colspan=3><textarea name="catatan" id="catatan" rows="3" cols="75"><?php 
echo $catatan;
?>
</textarea></td>
</tr>
Exemplo n.º 16
0
						<td>&nbsp;</td>
						<td><select name="article_timeout" style="margin:1px;" onchange="document.article.article_cacheoff.checked=false;">
<?php 
echo '<option value=" ">' . $BL['be_admin_tmpl_default'] . "</option>\n";
echo '<option value="60"' . is_selected($article["article_timeout"], '60', 0, 0) . '>&nbsp;&nbsp;1 ' . $BL['be_date_minute'] . "</option>\n";
echo '<option value="300"' . is_selected($article["article_timeout"], '300', 0, 0) . '>&nbsp;&nbsp;5 ' . $BL['be_date_minutes'] . "</option>\n";
echo '<option value="900"' . is_selected($article["article_timeout"], '900', 0, 0) . '>15 ' . $BL['be_date_minutes'] . "</option>\n";
echo '<option value="1800"' . is_selected($article["article_timeout"], '1800', 0, 0) . '>30 ' . $BL['be_date_minutes'] . "</option>\n";
echo '<option value="3600"' . is_selected($article["article_timeout"], '3600', 0, 0) . '>&nbsp;&nbsp;1 ' . $BL['be_date_hour'] . "</option>\n";
echo '<option value="14400"' . is_selected($article["article_timeout"], '14400', 0, 0) . '>&nbsp;&nbsp;4 ' . $BL['be_date_hours'] . "</option>\n";
echo '<option value="43200"' . is_selected($article["article_timeout"], '43200', 0, 0) . '>12 ' . $BL['be_date_hours'] . "</option>\n";
echo '<option value="86400"' . is_selected($article["article_timeout"], '86400', 0, 0) . '>&nbsp;&nbsp;1 ' . $BL['be_date_day'] . "</option>\n";
echo '<option value="172800"' . is_selected($article["article_timeout"], '172800', 0, 0) . '>&nbsp;&nbsp;2 ' . $BL['be_date_days'] . "</option>\n";
echo '<option value="604800"' . is_selected($article["article_timeout"], '604800', 0, 0) . '>&nbsp;&nbsp;1 ' . $BL['be_date_week'] . "</option>\n";
echo '<option value="1209600"' . is_selected($article["article_timeout"], '1209600', 0, 0) . '>&nbsp;&nbsp;2 ' . $BL['be_date_weeks'] . "</option>\n";
echo '<option value="2592000"' . is_selected($article["article_timeout"], '2592000', 0, 0) . '>&nbsp;&nbsp;1 ' . $BL['be_date_month'] . "</option>\n";
?>
				        </select></td>
				  <td>&nbsp;<?php 
echo $BL['be_cache_timeout'];
?>
&nbsp;&nbsp;</td>

					</tr>
				</table></td>
			</tr>

			<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr>

			<tr>
				<td align="right" class="chatlist tdtop4"><?php 
Exemplo n.º 17
0
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>

<tr>
	<td align="right" class="chatlist">&nbsp;</td>
	<td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
		<tr>
			<td class="chatlist"><?php 
echo $BL['be_cnt_column'];
?>
:&nbsp;</td>
			<td><select name="cimage_col" id="cimage_col">
<?php 
// list select menu for max image columns
for ($max_image_col = 1; $max_image_col <= 25; $max_image_col++) {
    echo '<option value="' . $max_image_col . '" ';
    is_selected($max_image_col, $content['image_special']['col']);
    echo '>' . $max_image_col . '</option>' . LF;
}
?>
			  </select></td>
			  <td class="chatlist">&nbsp;&nbsp;<?php 
echo $BL['be_cnt_imagespace'];
?>
:&nbsp;</td>
			  <td><input name="cimage_space" type="text" class="f11b" id="cimage_space" style="width: 50px;" size="2" maxlength="3" onkeyup="if(!parseInt(this.value,10)) this.value='';" value="<?php 
echo $content['image_special']['space'];
?>
" /></td>
			  <td class="chatlist">&nbsp;px&nbsp;&nbsp;&nbsp;</td>

			</tr>
Exemplo n.º 18
0
				<option value="2"<?php 
    is_selected(2, $content["tab_type"]);
    ?>
><?php 
    echo $BL['be_ctype_accordion'];
    ?>
</option>
<?php 
    if (isset($template_default['attributes']['cpgroup_custom']) && is_array($template_default['attributes']['cpgroup_custom']) && count($template_default['attributes']['cpgroup_custom'])) {
        foreach ($template_default['attributes']['cpgroup_custom'] as $tab_type_value => $value) {
            ?>
				<option value="<?php 
            echo $tab_type_value;
            ?>
"<?php 
            is_selected($tab_type_value, $content["tab_type"]);
            ?>
><?php 
            echo html($value['title']);
            ?>
</option>
<?php 
        }
    }
    ?>
			</select></td>

		</tr>
		</table><script type="text/javascript">

			var cTabStatus = <?php 
Exemplo n.º 19
0
				<option value="2"<?php 
is_selected(2, $content['news']['news_paginate_basis']);
?>
><?php 
echo $BL['be_date_week'];
?>
</option>
				<option value="3"<?php 
is_selected(3, $content['news']['news_paginate_basis']);
?>
><?php 
echo $BL['be_date_month'];
?>
</option>
				<option value="4"<?php 
is_selected(4, $content['news']['news_paginate_basis']);
?>
><?php 
echo $BL['be_date_year'];
?>
</option>
			
			</select></td>
			<td>&nbsp;&nbsp;</td>
			<td><input type="text" name="news_paginate_count" id="news_paginate_count" value="<?php 
echo html($content['news']['news_paginate_count']);
?>
" class="width25" /></td>
		</tr>
		</table></td>
</tr>
    function form($instance)
    {
        global $wpdb;
        $instance = wp_parse_args((array) $instance, array('title' => __('Views', WP_PVP::$textdomain), 'template' => WP_PVP::$options['most_viewed_template'], 'thumbnail_width' => WP_PVP::$options['set_thumbnail_size_w'], 'thumbnail_height' => WP_PVP::$options['set_thumbnail_size_h'], 'type' => 'most_viewed', 'mode' => 'both', 'limit' => 10, 'chars' => 100, 'cat_ids' => '0', 'tag_ids' => '0', 'withbot' => '1'));
        $title = esc_attr($instance['title']);
        $template = $instance['template'];
        $type = esc_attr($instance['type']);
        $mode = esc_attr($instance['mode']);
        $withbot = esc_attr($instance['withbot']);
        $thumbnail_width = intval($instance['thumbnail_width']);
        $thumbnail_height = intval($instance['thumbnail_height']);
        $limit = intval($instance['limit']);
        $chars = intval($instance['chars']);
        $cat_ids = $instance['cat_ids'];
        if (!is_array($cat_ids)) {
            $cat_ids = explode(',', $car_ids);
        }
        $tag_ids = esc_attr($instance['tag_ids']);
        ?>
		<p>
			<label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        _e('Title:', WP_PVP::$textdomain);
        ?>
</label>
			<input class="widefat" id="<?php 
        echo $this->get_field_id('title');
        ?>
" name="<?php 
        echo $this->get_field_name('title');
        ?>
" type="text" value="<?php 
        echo $title;
        ?>
" />
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('type');
        ?>
"><?php 
        _e('Statistics Type:', WP_PVP::$textdomain);
        ?>
</label><br>
			<select name="<?php 
        echo $this->get_field_name('type');
        ?>
" id="<?php 
        echo $this->get_field_id('type');
        ?>
">
				<option value="most_viewed"<?php 
        selected('most_viewed', $type);
        ?>
><?php 
        _e('Most Viewed', WP_PVP::$textdomain);
        ?>
</option>
				<option value="most_viewed_category"<?php 
        selected('most_viewed_category', $type);
        ?>
><?php 
        _e('Most Viewed By Category', WP_PVP::$textdomain);
        ?>
</option>
				<option value="most_viewed_tag"<?php 
        selected('most_viewed_tag', $type);
        ?>
><?php 
        _e('Most Viewed By Tag', WP_PVP::$textdomain);
        ?>
</option>
			</select>
		</p>
		<p id="<?php 
        echo $this->get_field_id('mode');
        ?>
_p" <?php 
        if ($type != 'most_viewed') {
            echo 'style="display:none;"';
        }
        ?>
>
			<label for="<?php 
        echo $this->get_field_id('mode');
        ?>
"><?php 
        _e('Include Views From:', WP_PVP::$textdomain);
        ?>
</label>
			<select name="<?php 
        echo $this->get_field_name('mode');
        ?>
" id="<?php 
        echo $this->get_field_id('mode');
        ?>
">
				<option value="both"<?php 
        selected('both', $mode);
        ?>
><?php 
        _e('Posts &amp; Pages', WP_PVP::$textdomain);
        ?>
</option>
				<option value="post"<?php 
        selected('post', $mode);
        ?>
><?php 
        _e('Posts Only', WP_PVP::$textdomain);
        ?>
</option>
				<option value="page"<?php 
        selected('page', $mode);
        ?>
><?php 
        _e('Pages Only', WP_PVP::$textdomain);
        ?>
</option>
			</select>
		</p>
		<p id="<?php 
        echo $this->get_field_id('cat_ids');
        ?>
_p" <?php 
        if ($type != 'most_viewed_category') {
            echo 'style="display:none;"';
        }
        ?>
>
			<label for="<?php 
        echo $this->get_field_id('cat_ids');
        ?>
"><?php 
        _e('Category IDs:', WP_PVP::$textdomain);
        ?>
</label>
			<select name="<?php 
        echo $this->get_field_name('cat_ids');
        ?>
[]" size="3" multiple="multiple" class="widefat" id="<?php 
        echo $this->get_field_id('cat_ids');
        ?>
" style="height:auto;" >
				<?php 
        $cats = get_categories(array('orderby' => 'id', 'hide_empty' => 0, 'taxonomy' => 'category'));
        foreach ($cats as $cat) {
            echo '<option value="' . $cat->term_id . '"' . is_selected($cat->term_id, $cat_ids) . '>' . esc_html($cat->name) . '</option>';
        }
        ?>
		        </select>
			<small><?php 
        _e('Seperate mutiple categories with commas.', WP_PVP::$textdomain);
        ?>
</small>
		</p>
		<p id="<?php 
        echo $this->get_field_id('tag_ids');
        ?>
_p" <?php 
        if ($type != 'most_viewed_tag') {
            echo 'style="display:none;"';
        }
        ?>
>
			<label for="<?php 
        echo $this->get_field_id('tag_ids');
        ?>
"><?php 
        _e('Tag IDs:', WP_PVP::$textdomain);
        ?>
</label>
			<input class="widefat" id="<?php 
        echo $this->get_field_id('tag_ids');
        ?>
" name="<?php 
        echo $this->get_field_name('tag_ids');
        ?>
" type="text" value="<?php 
        echo $tag_ids;
        ?>
" />
			<small><?php 
        _e('Seperate mutiple categories with commas.', WP_PVP::$textdomain);
        ?>
</small>
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('template');
        ?>
"><?php 
        _e('Views Template:', WP_PVP::$textdomain);
        ?>
</label><br>
			<textarea name="<?php 
        echo $this->get_field_name('template');
        ?>
" id="<?php 
        echo $this->get_field_id('template');
        ?>
" class="widefat"><?php 
        echo htmlspecialchars(stripslashes($template));
        ?>
</textarea><br>
			<?php 
        _e('Allowed Variables:', WP_PVP::$textdomain);
        ?>
 - %VIEW_COUNT% - %POST_TITLE% - %POST_EXCERPT% - %POST_CONTENT% - %POST_DATE% - %POST_URL% - %POST_THUMBNAIL%
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('limit');
        ?>
"><?php 
        _e('No. Of Records To Show:', WP_PVP::$textdomain);
        ?>
</label>
			<input name="<?php 
        echo $this->get_field_name('limit');
        ?>
" type="text" id="<?php 
        echo $this->get_field_id('limit');
        ?>
" value="<?php 
        echo $limit;
        ?>
" size="4" maxlength="2" /><br>
			<label for="<?php 
        echo $this->get_field_id('chars');
        ?>
"><?php 
        _e('Maximum Post Title Length (Characters):', WP_PVP::$textdomain);
        ?>
</label>
			<input id="<?php 
        echo $this->get_field_id('chars');
        ?>
" name="<?php 
        echo $this->get_field_name('chars');
        ?>
" type="text" value="<?php 
        echo $chars;
        ?>
" size="4" />
			<small><?php 
        _e('<strong>0</strong> to disable.', WP_PVP::$textdomain);
        ?>
 <?php 
        _e(' Chinese characters to calculate the two words!', WP_PVP::$textdomain);
        ?>
</small><br>
			<?php 
        _e('Size of post thumbnail: ', WP_PVP::$textdomain);
        ?>
			<label for="<?php 
        echo $this->get_field_id('thumbnail_width');
        ?>
"><?php 
        _e('Width: ', WP_PVP::$textdomain);
        ?>
</label>
			<input type="text" id="<?php 
        echo $this->get_field_id('thumbnail_width');
        ?>
" name="<?php 
        echo $this->get_field_id('thumbnail_width');
        ?>
" size="3" value="<?php 
        echo $thumbnail_width;
        ?>
" />
			<label for="<?php 
        echo $this->get_field_id('thumbnail_height');
        ?>
"><?php 
        _e('Height: ', WP_PVP::$textdomain);
        ?>
</label>
			<input type="text" id="<?php 
        echo $this->get_field_id('thumbnail_height');
        ?>
" name="<?php 
        echo $this->get_field_id('thumbnail_height');
        ?>
" size="3" value="<?php 
        echo $thumbnail_height;
        ?>
" />
		</p>
		<p>
			<label for="<?php 
        echo $this->get_field_id('withbot');
        ?>
"><?php 
        _e('With BOT Views:', WP_PVP::$textdomain);
        ?>
</label>
			<select name="<?php 
        echo $this->get_field_name('withbot');
        ?>
" id="<?php 
        echo $this->get_field_id('withbot');
        ?>
">
				<option value="1"<?php 
        selected('1', $withbot);
        ?>
><?php 
        _e('With BOT', WP_PVP::$textdomain);
        ?>
</option>
				<option value="0"<?php 
        selected('0', $withbot);
        ?>
><?php 
        _e('Without BOT', WP_PVP::$textdomain);
        ?>
</option>
			</select>
		</p>
		<input type="hidden" id="<?php 
        echo $this->get_field_id('submit');
        ?>
" name="<?php 
        echo $this->get_field_name('submit');
        ?>
" value="1" />
		<script type="text/javascript">
		jQuery('#<?php 
        echo $this->get_field_id('type');
        ?>
').change(function(){
			if(jQuery(this).val()=='most_viewed'){jQuery('#<?php 
        echo $this->get_field_id('mode');
        ?>
_p').show();jQuery('#<?php 
        echo $this->get_field_id('cat_ids');
        ?>
_p').hide();jQuery('#<?php 
        echo $this->get_field_id('tag_ids');
        ?>
_p').hide();}
			if(jQuery(this).val()=='most_viewed_category'){jQuery('#<?php 
        echo $this->get_field_id('mode');
        ?>
_p').hide();jQuery('#<?php 
        echo $this->get_field_id('cat_ids');
        ?>
_p').show();jQuery('#<?php 
        echo $this->get_field_id('tag_ids');
        ?>
_p').hide();}
			if(jQuery(this).val()=='most_viewed_tag'){jQuery('#<?php 
        echo $this->get_field_id('mode');
        ?>
_p').hide();jQuery('#<?php 
        echo $this->get_field_id('cat_ids');
        ?>
_p').hide();jQuery('#<?php 
        echo $this->get_field_id('tag_ids');
        ?>
_p').show();}
		});
		</script>
		<?php 
    }
?>
</td>
                    <td><?php 
echo $BL['modules'][$content["module"]]['jqs_speed'];
?>
</td>
                </tr>
                <tr>
                    <td>
                        <select name="jqs_slidesjs_effect" id="jqs_slidesjs_effect" class="f11">
                            <option value="slide"<?php 
is_selected($content['br_sliderjs']['slidesjs']['jqs_effect'], 'slide');
?>
>slide</option>
                            <option value="fade"<?php 
is_selected($content['br_sliderjs']['slidesjs']['jqs_effect'], 'fade');
?>
>fade</option>
                        </select>
                    </td>
                    <td>
                        <input type="text" name="jqs_slidesjs_speed" id="jqs_slidesjs_speed" value="<?php 
echo $content['br_sliderjs']['slidesjs']['jqs_speed'];
?>
" class="br_module_w40 br_module_number" size="4" maxlength="4" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
Exemplo n.º 22
0
		  <option value="1" <?php 
is_selected(1, $content["newsletter"]["pos"]);
?>
><?php 
echo $BL['be_cnt_left'];
?>
</option>
		  <option value="2" <?php 
is_selected(2, $content["newsletter"]["pos"]);
?>
><?php 
echo $BL['be_cnt_center'];
?>
</option>
		  <option value="3" <?php 
is_selected(3, $content["newsletter"]["pos"]);
?>
><?php 
echo $BL['be_cnt_right'];
?>
</option>
		</select></td>
	  </tr>
	</table></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3"></td></tr>
<tr>
	<td align="right" class="chatlist"><?php 
echo $BL['be_cnt_labelname'];
?>
:&nbsp;</td>
Exemplo n.º 23
0
function ink_admin()
{
    global $wpdb, $table_prefix;
    $table = $table_prefix . 'ink';
    $theme = get_option('template');
    $freshPageFolderName = dirname(plugin_basename(__FILE__));
    // This isn't testing what you think it is...
    if ($values = $wpdb->get_results("SELECT * FROM " . $table . " WHERE theme = '{$theme}'")) {
        ?>
	<div id="inkadmin">
		<div class="shelf_column" id="leftcolumn">
			<h5 class="title">Color Mixer <span>&#8212; After selecting a color field, create your own mix.</span></h5>
			<div class="colorfields">
				<div id="red_bar" class="color_bar">
					<img class="slider" id="red_slider" src="../<?php 
        echo FLUTTER_URI_RELATIVE;
        ?>
images/horiz_slider.png" alt=""/>
				</div>
				<div id="green_bar" class="color_bar">
					<img class="slider" id="green_slider" src="../<?php 
        echo FLUTTER_URI_RELATIVE;
        ?>
images/horiz_slider.png" alt=""/>
				</div>
				<div id="blue_bar" class="color_bar">
					<img class="slider" id="blue_slider" src="../<?php 
        echo FLUTTER_URI_RELATIVE;
        ?>
images/horiz_slider.png" alt=""/>
				</div>
			</div>
			<div class="colorbox">
				<div id="colorfield">
				</div>
				<input type="text" id="red" name="red" value="0" size="3"/><br/>
				<input type="text" id="green" name="green" value="0" size="3"/><br/>
				<input type="text" id="blue" name="blue" value="0" size="3"/>
			</div>
		</div>
		<div class="content_wrap">
		<form><label><input type="checkbox" name="enableInk" id="enableInk" <?php 
        if (get_option('enableInk') == 'true') {
            echo 'checked';
        }
        ?>
 /> Activate</label></form>
		<form name="ink" id="ink" action="">
		<p><strong>This portion of Flutter is experimental. This is not a final product and has not been tested extensively. Use it at your own risk.</strong></p>
		<p>Use the form below to modify your blog's font and color settings. To modify colors, select the color field you'd like to modify and then use the RGB color mixer in the shelf below to choose your color (you can use the hexadecimal field too). If you're unsure what you're modifying, click the '?' link next to the element name to view your blog with that element highlighted.</p>
		<input type="hidden" id="activeField" name="activeField" />
		<?php 
        foreach ($values as $value) {
            ?>
			<div class="ink_element">
			<h3><?php 
            echo $value->element;
            ?>
 <a title="Highlight this element" href="<?php 
            ink_highlight_url($value->element);
            ?>
">?</a></h3>
			<span>Background: <input class="color" onclick="toggleColorSwatch('body__background')" id="<?php 
            echo urlencode($value->element) . '__';
            ?>
background" name="<?php 
            echo urlencode($value->element) . '__';
            ?>
background" type="text" value="<?php 
            echo $value->background;
            ?>
"/></span>
			<span>Border color: <input class="color" id="<?php 
            echo urlencode($value->element) . '__';
            ?>
border" type="text" value="<?php 
            echo $value->border;
            ?>
" name="<?php 
            echo urlencode($value->element) . '__';
            ?>
border" /></span>
			<span>Font color: <input class="color" id="<?php 
            echo urlencode($value->element) . '__';
            ?>
color" type="text" value="<?php 
            echo $value->color;
            ?>
" name="<?php 
            echo urlencode($value->element) . '__';
            ?>
color" /></span>
			<br/>
			<span>Font family: 
							<select id="<?php 
            echo urlencode($value->element) . '__';
            ?>
font_family" name="<?php 
            echo urlencode($value->element) . '__';
            ?>
font_family" />
								<option value="none">Default</option>
								<option value="'Century Gothic', 'Arial', 'Verdana', 'Helvetica', 'Avant Garde', sans-serif" <?php 
            is_selected("'Century Gothic', 'Arial', 'Verdana', 'Helvetica', 'Avant Garde', sans-serif", $value->font_family);
            ?>
>"Century Gothic", "Arial", "Verdana", "Helvetica", "Avant Garde", sans-serif</option>
								<option value="'Times New Roman', Roman, serif" <?php 
            is_selected("'Times New Roman', Roman, serif", $value->font_family);
            ?>
>"Times New Roman", Roman, serif</option>
								<option value="'Lucida Grand', Algerian, fantasy" <?php 
            is_selected("'Lucida Grand', Algerian, fantasy", $value->font_family);
            ?>
>"Lucida Grand", Algerian, fantasy</option>
								<option value="'Comic Sans MS', 'Brush Script MT', cursive" <?php 
            is_selected("'Comic Sans MS', 'Brush Script MT', cursive", $value->font_family);
            ?>
>"Comic Sans MS", "Brush Script MT", cursive</option>
								<option value="'Courier New', Courier, monospace" <?php 
            is_selected("'Courier New', Courier, monospace", $value->font_family);
            ?>
>"Courier New", Courier, monospace</option>
							</select>
			</span>
			<span>Font size (pixels): <input class="size" id="<?php 
            echo urlencode($value->element) . '__';
            ?>
font_size" size="3" type="text" value="<?php 
            echo $value->font_size;
            ?>
" name="<?php 
            echo urlencode($value->element) . '__';
            ?>
font_size" /></span>
			<span>Font style: 
							<select id="<?php 
            echo urlencode($value->element) . '__';
            ?>
font_style" name="<?php 
            echo urlencode($value->element) . '__';
            ?>
font_style">
								<option value="none" <?php 
            is_selected('none', $value->font_style);
            ?>
>Default</option>
								<option value="normal" <?php 
            is_selected('normal', $value->font_style);
            ?>
>Normal</option>
								<option value="italic" <?php 
            is_selected('italic', $value->font_style);
            ?>
>Italic</option>
								<option value="bold" <?php 
            is_selected('bold', $value->font_style);
            ?>
>Bold</option>
								<option value="bold italic" <?php 
            is_selected('bold italic', $value->font_style);
            ?>
>Bold Italic</option>
							</select>
			</span>
			</div>
		<?php 
        }
        ?>
		</form>
		</div>

	</div>
	<div class="content_wrap">
		<input type="button" id="restore" value="Restore Defaults" />
	</div>
	<img src="../<?php 
        echo FLUTTER_URI_RELATIVE;
        ?>
images/colorswatch-active.png" alt="" style="display: none;">
		<?php 
    } else {
        echo '<div id="inkadmin"><div class="content_wrap">The Ink table doesn\'t exist in your database. Please try reinstalling the software.</div></div>';
    }
}
Exemplo n.º 24
0
				<option value="OR"<?php 
is_selected('OR', $content['alink']['alink_andor']);
?>
><?php 
echo $BL['be_fsearch_or'];
?>
</option>
				<option value="AND"<?php 
is_selected('AND', $content['alink']['alink_andor']);
?>
><?php 
echo $BL['be_fsearch_and'];
?>
</option>
				<option value="NOT"<?php 
is_selected('NOT', $content['alink']['alink_andor']);
?>
><?php 
echo $BL['be_fsearch_not'];
?>
</option>

			</select></td>
		</tr>
		</table></td>
</tr>

<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /><script type="text/javascript">
<!--

window.addEvent('domready', function(){
Exemplo n.º 25
0
					<option value="OR"<?php 
is_selected('OR', $content['search']['news_andor']);
?>
><?php 
echo $BL['be_fsearch_or'];
?>
</option>
					<option value="AND"<?php 
is_selected('AND', $content['search']['news_andor']);
?>
><?php 
echo $BL['be_fsearch_and'];
?>
</option>
					<option value="NOT"<?php 
is_selected('NOT', $content['search']['news_andor']);
?>
><?php 
echo $BL['be_fsearch_not'];
?>
</option>

				</select></td>
			</tr>
			<tr>
				<td colspan="2">&nbsp;</td>
				<td align="right" class="chatlist"><?php 
echo $BL['be_cnt_target'] . ' (' . $BL['be_alias'];
?>
/aid=1/id=3):&nbsp;</td>
				<td><input type="text" name="csearch_news_url" id="news_url" value="<?php 
Exemplo n.º 26
0
			<option value="5"<?php 
is_selected(5, $plugin['data']['calendar_range']);
?>
><?php 
echo $BLM['repeat_5'];
?>
</option>
			<option value="6"<?php 
is_selected(6, $plugin['data']['calendar_range']);
?>
><?php 
echo $BLM['repeat_6'];
?>
</option>
			<option value="7"<?php 
is_selected(7, $plugin['data']['calendar_range']);
?>
><?php 
echo $BLM['repeat_7'];
?>
</option>

		</select></td>
	</tr>

	<tr id="rDate0"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>

	<tr id="rDate1">
		<td align="right" class="chatlist" valign="top" style="padding-top:17px"><?php 
echo $BLM['repeat_till'];
?>
Exemplo n.º 27
0
 /**
  * Return a select list with the current selection
  *
  * The current value may either be a numeric index OR the actual string 
  * It's slightly more efficient when it's the index
  *
  * @param string $name - the name for the field
  * @param string/mixed $value - the key value for the current selection or an array for #multiple selection
  * @param array $args - containing "#options" which must point to a non empty array
  * @return $iselect HTML for the select list
  */
 function iselect($name, $value, $args)
 {
     //bw_trace2();
     $multiple = bw_array_get($args, "#multiple", false);
     if ($multiple) {
         $iselect = "<select name=\"{$name}[]\" multiple size=\"{$multiple}\">";
     } else {
         $iselect = "<select name=\"{$name}\">";
     }
     $options = bw_as_array($args['#options']);
     $optional = bw_array_get($args, "#optional", false);
     if ($optional) {
         $options = array(__("None")) + $options;
     }
     //bw_trace2( $options, "options" );
     $bw_shorten = bw_query_shorten($args);
     foreach ($options as $option_key => $option_value) {
         $selected = is_selected($option_key, $option_value, $value);
         if ($bw_shorten) {
             $option_value = bw_shorten($option_value, $bw_shorten);
         }
         $option = "<option value=\"{$option_key}\" {$selected}>{$option_value}</option>";
         $iselect .= $option;
     }
     $iselect .= "</select>";
     return $iselect;
 }
Exemplo n.º 28
0
		<option value="7" <?php 
is_selected(7, $content['reference']["pos"]);
?>
><?php 
echo $BL['be_cnt_right'] . ', ' . $BL['be_admin_page_top'];
?>
</option>
		<option value="8" <?php 
is_selected(8, $content['reference']["pos"]);
?>
><?php 
echo $BL['be_cnt_right'] . ', ' . $BL['be_cnt_reference_middle'];
?>
</option>
		<option value="9" <?php 
is_selected(9, $content['reference']["pos"]);
?>
><?php 
echo $BL['be_cnt_right'] . ', ' . $BL['be_admin_page_bottom'];
?>
</option>
		</select></td>
      </tr>
  </table></td>
</tr>

<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5"></td></tr>
<tr>
  <td align="right" class="chatlist"><?php 
echo $BL['be_cnt_reference_block'];
?>
Exemplo n.º 29
0
?>
>&nbsp;</option>
		<option value="_blank"<?php 
is_selected('_blank', $plugin['data']['adcampaign_data']['target']);
?>
>_blank</option>
		<option value="_top"<?php 
is_selected('_top', $plugin['data']['adcampaign_data']['target']);
?>
>_top</option>
		<option value="_self"<?php 
is_selected('_self', $plugin['data']['adcampaign_data']['target']);
?>
>_self</option>
		<option value="_parent"<?php 
is_selected('_parent', $plugin['data']['adcampaign_data']['target']);
?>
>_parent</option>
		</select></td>
			</tr>
		</table></td>
	</tr>




	<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="15" /></td></tr>

	<tr>
		<td align="right" class="chatlist" valign="top" style="padding-top:18px"><?php 
echo $BLM['calendar_start'];
Exemplo n.º 30
0
{
    echo 'index.php?step=' . $step;
}
function step_name($step_name)
{
    return ucwords(implode(' ', explode('_', $step_name)));
}
?>
<div class="window">
    <div class="sidebar">
        <ul>
            <?php 
foreach ($this->steps as $number => $step) {
    ?>
            <li class="<?php 
    is_selected($number + 1, $sn);
    ?>
" >
                <a href="<?php 
    url($number + 1);
    ?>
"><?php 
    echo step_name($step);
    ?>
</a>
            </li>
            <?php 
}
?>
        </ul>
    </div>