function searchForm() { global $xx, $set, $schText, $eF, $catName, $fromDda, $tillDda; echo "<form action='index.php?lc' method='post'>\n\t\t<table class='fieldBox'>\n\t\t<tr><td class='legend' colspan='2'> {$xx['sch_define_search']} </td></tr>\n\t\t<tr>\n<td class='label'>{$xx['sch_search_text']}:</td>\n\t\t<td><input type='text' name='schText' id='schText' value=\"{$schText}\" maxlength='50' size='30'></td>\n</tr>\n\t\t<tr><td colspan='2'><hr></td></tr>\n\t\t<tr>\n<td class='label'>{$xx['sch_event_fields']}:</td>\n\t\t<td><input type='checkbox' id='eF0' name='eF[]' value='0' onclick=\"checkZ('eF',this);\"" . (in_array(0, $eF) ? " checked='checked'" : '') . "> \n\t\t<label for='eF0'>{$xx['sch_all_fields']}</label></td>\n</tr>\n\t\t<tr>\n<td></td><td><input type='checkbox' id='eF1' name='eF[]' value='1' onclick=\"checkN('eF',this);\"" . (in_array(1, $eF) ? " checked='checked'" : '') . "> \n\t\t<label for='eF1'>{$xx['sch_title']}</label></td>\n</tr>\n"; foreach (str_split($set['evtTemplGen']) as $fieldNr) { if (strpos('1345', $fieldNr) !== false) { switch ($fieldNr) { case '1': echo "<tr>\n<td></td><td><input type='checkbox' id='eF2' name='eF[]' value='2' onclick=\"checkN('eF',this);\"" . (in_array(2, $eF) ? " checked='checked'" : '') . "> \n\t<label for='eF2'>{$xx['sch_venue']}</label></td>\n</tr>\n"; break; case '3': echo "<tr>\n<td></td><td><input type='checkbox' id='eF3' name='eF[]' value='3' onclick=\"checkN('eF',this);\"" . (in_array(3, $eF) ? " checked='checked'" : '') . "> \n\t<label for='eF3'>{$xx['sch_description']}</label></td>\n</tr>\n"; break; case '4': echo "<tr>\n<td></td><td><input type='checkbox' id='eF4' name='eF[]' value='4' onclick=\"checkN('eF',this);\"" . (in_array(4, $eF) ? " checked='checked'" : '') . "> \n\t<label for='eF4'>" . ($set['xField1'] ? "{$set['xField1']}" : $xx['sch_extra_field1']) . "</label></td>\n</tr>\n"; break; case '5': echo "<tr>\n<td></td><td><input type='checkbox' id='eF5' name='eF[]' value='5' onclick=\"checkN('eF',this);\"" . (in_array(5, $eF) ? " checked='checked'" : '') . "> \n\t<label for='eF5'>" . ($set['xField2'] ? "{$set['xField2']}" : $xx['sch_extra_field2']) . "</label></td>\n</tr>\n"; } } } echo "<tr><td class='label'>{$xx['sch_event_cat']}:</td><td><select name='catName'>\n"; catList($catName); echo "</select></td></tr>\n"; echo "<tr>\n<td class='label'>{$xx['sch_occurring_between']}:</td><td>\n\t\t<input type='text' name='fromDda' id='fromDda' value='" . IDtoDD($fromDda) . "' size='8'>\n\t\t<button title=\"{$xx['sch_select_start_date']}\" onclick=\"dPicker(1,'nill','fromDda');return false;\">←</button> –\n\t\t<input type='text' name='tillDda' id='tillDda' value='" . IDtoDD($tillDda) . "' size='8'>\n\t\t<button title=\"{$xx['sch_select_end_date']}\" onclick=\"dPicker(1,'nill','tillDda');return false;\">←</button></td>\n</tr>\n\t\t</table>\n\t\t<input type='submit' name='search' value=\"{$xx['sch_search']}\">\n\t\t</form>\n\t\t<div style='clear:right'></div>\n\t\t<script>document.getElementById('schText').focus();</script>"; }
function selectEvents() { global $ax, $set, $msg, $fileName, $fileDes, $usrName, $catName, $fromDda, $fromMda, $tillDda, $tillMda; if (!$fileName) { $fileName = substr(translit($set['calendarTitle'], true), 0, 60); } echo "<form action='index.php?lc' method='post'>\n\t\t<table class='fieldBox'>\n\t\t<tr><td class='legend' colspan='2'> {$ax['iex_create_ics']} </td></tr>\n\t\t<tr><td class='label'>{$ax['iex_file_name']}:</td><td><input type='text' name='fileName' maxlength='60' value=\"{$fileName}\" maxlength='40' size='26'> .ics</td></tr>\n\t\t<tr><td class='label'>{$ax['iex_file_description']}:</td><td><input type='text' name='fileDes' value=\"{$fileDes}\" maxlength='50' size='30'></td></tr><tr><td colspan='2'><hr>\n</td></tr><tr><td colspan='2'>{$ax['iex_filters']}</td></tr>\n\t\t<tr><td class='label'>{$ax['iex_owner']}:</td><td><select name='usrName' >\n"; userMenu($usrName); echo "</select></td></tr>\n<tr><td class='label'>{$ax['iex_category']}:</td><td><select name='catName' >\n"; catList($catName); echo "</select></td></tr>\n\t\t<tr><td class='label'>{$ax['iex_between_dates']}:</td><td>\n\t\t<input type='text' name='fromDda' id='fromDda' value='" . IDtoDD($fromDda) . "' size='8'>\n\t\t<button title=\"{$ax['iex_select_start_date']}\" onclick=\"dPicker(1,'nill','fromDda');return false;\">←</button> –\n\t\t<input type='text' name='tillDda' id='tillDda' value='" . IDtoDD($tillDda) . "' size='8'>\n\t\t<button title=\"{$ax['iex_select_end_date']}\" onclick=\"dPicker(1,'nill','tillDda');return false;\">←</button></td></tr>\n\t\t<tr><td class='label'>{$ax['iex_changed_between']}:</td><td>\n\t\t<input type='text' name='fromMda' id='fromMda' value='" . IDtoDD($fromMda) . "' size='8'>\n\t\t<button title=\"{$ax['iex_select_start_date']}\" onclick=\"dPicker(1,'nill','fromMda');return false;\">←</button> –\n\t\t<input type='text' name='tillMda' id='tillMda' value='" . IDtoDD($tillMda) . "' size='8'>\n\t\t<button title=\"{$ax['iex_select_end_date']}\" onclick=\"dPicker(1,'nill','tillMda');return false;\">←</button></td></tr>\n\t\t</table>\n\t\t<input class='noPrint' type='submit' name='create' value=\"{$ax['iex_create_file']}\">\n"; if (isset($_POST['create']) and $msg == $ax['iex_file_created']) { $icalfName = $fileName ? $fileName : $set['calendarTitle']; $icalfName = substr(translit($icalfName, true) . '.ics', 0, 60); $rName = str_replace('.', '-' . date("Ymd-Hi") . '.', $icalfName); echo " <button class='noPrint' type='button' onclick=\"location.href='dloader.php?ftd={$icalfName}&rName={$rName}'\">{$ax['iex_download_file']}</button>\n"; } echo "</form>\n<div style='clear:right'></div>\n"; }
} } } else { $sql_gid[] = "FIND_IN_SET(%s,orgids)"; $param[] = 'other'; } $sql .= "(" . implode(' OR ', $sql_gid) . ") and ( n.uids='' OR FIND_IN_SET(%d,n.uids))"; $sql .= "))"; $param[] = $_G['uid']; } } switch ($action) { case 'category': $message = 'success'; $catid = empty($_GET['catid']) ? 0 : intval($_GET['catid']); $data = catList($catid, $sql, $param); break; case 'list': $catid = empty($_GET['catid']) ? 0 : intval($_GET['catid']); $isHistory = empty($_GET['isHistory']) ? 0 : 1; if ($catid == 0) { json_error('分类不存在'); } $subids = C::t('news_cat')->getSonByCatid($catid); $sql .= ' and catid IN(%n)'; $param[] = $subids; $sql .= " and status='1'"; $sql = !$isHistory ? $sql . ' and v.vid is null' : $sql; $data = listView($sql, $param); $message = 'success'; break;
<?php require 'header.php'; $recent = recentVideo(); $cat = catList(); if (isset($_GET['v'])) { $data = videoDetail($_GET['v'])->result[0]; $comment = getComment($_GET['v']); ?> <div class="clear"></div> <div class="inner shadow"></div> <div class="container row"> <div class="two-thirds column left"> <h1 class="heading"><?= $data->title ?></h1> <!-- Album Detail Start --> <div class="in-sec"> <div class="album-detail"> <a href="" class="thumb"> <iframe height="300px" width="550px" scrolling="no" src="http://182.18.165.43/multitvfinal/index.php/details?id=<?php echo $data->id ?>&device=3g" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe> </a> <div class="clear"></div> </div> <div class="desc"> <p class="musicby"><?= $data->title ?></p> <h4>Album Discription</h4> <p class="txt"><?= $data->description ?> </p> </div> </div> <div class="in-sec"> <div class="album-opts">
$this->menu = array(array('label' => CartModule::t('Manage Products', 'product'), 'url' => array('admin')), array('label' => CartModule::t('Create Product', 'product'), 'url' => array('create')), array('label' => CartModule::t('Update Product', 'product'), 'url' => array('update', 'id' => $model->id)), array('label' => CartModule::t('Delete Product', 'product'), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => CartModule::t('Are you sure you want to delete this item?', 'product')))); ?> <h1><?php echo CartModule::t('View Product', 'product') . ' #' . $model->id; ?> </h1> <?php $photos = ''; foreach ($model->photos as $photo) { if (isset($model->photo) && $model->photo->id != $photo->id) { $photos .= $photo->link(array('w' => 150, 'target' => '_blank')); } } $attributes = array('id', 'artno', 'name', array('name' => 'catalogs', 'type' => 'raw', 'value' => implode('<br>', catList($model))), array('name' => 'photo', 'type' => 'raw', 'value' => ($model->photo ? $model->photo->link(array('w' => 300, 'target' => '_blank')) : '') . '<br />' . $photos), array('name' => 'shortdesc', 'type' => 'raw'), array('name' => 'fulldesc', 'type' => 'raw'), 'price', 'store'); $ProductField = $model->value->getFields(); if ($ProductField) { foreach ($ProductField as $field) { if ($field->position >= 500) { $tt = explode(', ', $model->value->getAttribute($field->varname)); $stt = ''; foreach ($tt as $t) { if ($stt) { $stt .= ', ' . $model->value->range($field->range, $t); } else { $stt = $model->value->range($field->range, $t); } } $field = array('label' => Yii::t("cart", $field->title), 'name' => $field->varname, 'value' => $stt); if (is_array($field['value'])) {
<?php require_once('constant.php'); $appdetail = appdetail(); $cat = catList()->result; //echo '<pre>';print_r($cat);echo '</pre>'; ?> <html lang="en"> <head> <meta charset="utf-8"> <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>VideoTube</title> <!--[if lt IE 9]> <script src="<?= JS_PATH ?>ie8/html5shiv.js"></script> <script src="<?= JS_PATH ?>ie8/respond.min.js"></script> <![endif]--> <link rel='stylesheet' id='style-css' href='<?= CSS_PATH ?>videotube-child/style.css' type='text/css' media='all' /> <link rel='stylesheet' href='<?= CSS_PATH ?>font-awesome.min.css?ver=4.0' type='text/css' media='all' /> <link rel='stylesheet' href='<?= CSS_PATH ?>/bootstrap.min.css?ver=4.0' type='text/css' media='all' /> <link rel='stylesheet' href='<?= CSS_PATH ?>font-awesome.css?ver=4.0' type='text/css' media='all' /> <link rel='stylesheet' href='<?= CSS_PATH ?>fonts/css.css?family=Lato%3A300%2C400%2C700%2C900&ver=4.0' type='text/css' media='all' /> <link rel='stylesheet' href='<?= CSS_PATH ?>style.css' type='text/css' media='all' /> <link rel='stylesheet' href='<?= CSS_PATH ?>bootstrap-multiselect.css?ver=4.0' type='text/css' media='all' /> <link rel='stylesheet' href='<?= CSS_PATH ?>front.end.css?ver=4.0' type='text/css' media='all' /> <!--- JS ---> <script type='text/javascript' src='<?= JS_PATH ?>jquery/jquery.js?ver=1.11.1'></script> <script type='text/javascript' src='<?= JS_PATH ?>jquery/jquery-migrate.min.js?ver=1.2.1'></script> <script type='text/javascript' src='<?= JS_PATH ?>bootstrap.min.js?ver=4.0'></script> </head> <body class="vc_responsive"> <div id="header"> <div class="container">