} ?> <img style="width:240px; margin-top: 2.5px;" src="<?php echo $param->image; ?> " /> <?php } ?> </div> </td> <td> <table border="0" cellspacing="0"> <tr> <td><div style="width: 300px;">Thank You <?php echo getWeekName($param->week); ?> </div></td> </tr> <tr> <td><div style="width: 300px;font-size: 13px; color: #3C3C3C; text-align: justify;"> <?php echo $param->title; ?> </div> </td> </tr> <tr> <td> <div style="width: 300px;margin-top:0px;color: #3C3C3C"> <p style="margin:3px 0 2px 0;padding:0;color:#000">Description</p>
$calendarInfo = $_SGLOBAL['db']->fetch_array($query); $calendarInfo['start_d'] = date('Y-m-d H:i:s', $calendarInfo['start_t']); $calendarInfo['start_w'] = date('H:i', $calendarInfo['start_t']); $calendarInfo['end_d'] = date('Y-m-d H:i:s', $calendarInfo['end_t']); $calendarInfo['end_w'] .= date('H:i', $calendarInfo['end_t']); } } elseif ($op == 'showEvent') { if (empty($calendar) || !isset($_GET['calendar_info_id'])) { showmessage('do_error'); } $calendar_info_id = $_GET['calendar_info_id']; $sql = 'select * from ' . tname('calendar_info') . " where id = {$calendar_info_id} limit 1"; $query = $_SGLOBAL['db']->query($sql); $calendarInfo = $_SGLOBAL['db']->fetch_array($query); $calendarInfo['show_date'] = date('m月d日', $calendarInfo['start_t']); $calendarInfo['show_date'] .= '(周' . getWeekName(date('w', $calendarInfo['start_t'])) . '),'; $calendarInfo['show_date'] .= date('H', $calendarInfo['start_t']) >= 12 ? '下午' : '上午'; $calendarInfo['show_date'] .= date('H:i', $calendarInfo['start_t']) . ' - '; $calendarInfo['show_date'] .= date('H', $calendarInfo['end_t']) >= 12 ? '下午' : '上午'; $calendarInfo['show_date'] .= date('H:i', $calendarInfo['end_t']); } elseif ($op == 'deleteEvent') { if (!empty($calendar) && isset($_GET['calendar_info_id'])) { $sql = 'delete from ' . tname('calendar_info') . " where id = {$_GET['calendar_info_id']}"; $_SGLOBAL['db']->query($sql); echo json_encode(array('status' => 1)); } else { echo json_encode(array('status' => 1)); } exit; } else { //添加编辑日历
?> <?php foreach ($offers->customOptions as $offer) { ?> <?php // if ($offer->active == 0) // continue; ?> <div> <img u=image src = "<?php echo getSiteUrl() . $offer->image; ?> " /> <div u="thumb"> <h4 class="opthead">Week <?php echo getWeekName($offer->week); ?> </h4> <p class="opttext"> <?php echo $offer->title; ?> </p> <p class="opttext"> <?php echo $offer->description; ?> </p> </div> </div> <?php
function getDaySelectSundayList($p_startDay, $p_stopDay) { $st_date_array = getDate2Array($p_startDay); $m_day_count = getWeekName($st_date_array[1], $st_date_array[2], $st_date_array[0]); if ($m_day_count != 0) { $p_startDay = getAddDayEndDate($st_date_array[0], $st_date_array[1], $st_date_array[2], -$m_day_count); } // end of if echo "<option value='{$p_startDay}'>{$p_startDay} \n"; while ($p_startDay != $p_stopDay) { $st_date_array = getDate2Array($p_startDay); $p_startDay = getAddDayEndDate($st_date_array[0], $st_date_array[1], $st_date_array[2], 7); echo "<option value='{$p_startDay}'>{$p_startDay} \n"; } // end of while }
<!-- Slides Container --> <div u="slides" style="cursor: move; position: absolute; left: 350px; top: 50px; width: 600px; height: 300px; overflow: hidden;"> <?php foreach ($model as $model) { if ($model->active == 0) { continue; } ?> <div> <img u=image src="<?php echo getSiteUrl() . $model->image; ?> " /> <div u="thumb"> <h4 class="opthead">Week <?php echo getWeekName($model->week); ?> </h4> <p class="opttext"> <?php echo $model->title; ?> </p> <p class="opttext"> <?php echo $model->description; ?> </p> </div> </div> <?php
"<option value = '2'>Two</option>" + "<option value = '3'>Three</option>" + "<option value = '4'>Four</option>" + "<option value = '5'>Five</option>" + "<option value = '6'>Six</option>" + "</select>" + "</td>" + // "<td><i class='remove'>Remove</i></td>" + "</tr>" ); } </script> <?php $weeks = array(); for ($i = 1; $i < 7; $i++) { $weeks[$i] = getWeekName($i); } ?> <div class="modal fade" id="createOption" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <!--<div class="" id="createOption" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">--> <div class="col-lg-10 col-lg-offset-1"> <div class="modal-content"> <?php $form = $this->beginWidget('CActiveForm', array('id' => 'create-option-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('name' => 'create-option-form'))); $offer = new CustomOptionsId(); ?> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <h4 class="modal-title" id="myModalLabel">Add New Option <span> <?php