private function getNewBookingId($patientUserName = '******', $doctorName = 'malijuanmlj') {/*{{{*/ $userId = $this->getPatient($patientUserName)->user->id; $doctorId = $this->getDoctor($doctorName)->id; $schedule = '2013-11-19,上午';//nf $disease = '疾病描述'; $bookingGoal = 3; $hospital = '就诊医院'; $userCategory = BookingOrder::USER_CATEGORY_OLD; $description = '详情描述:按时;付了款;是来得快积分;拉会计师的;浪费空间;了思考及地方;阿贾克斯的f'; $attachmentIds = ''; $deviceType = 'ios'; $patientId = $this->getPatient($patientUserName)->id; $databucket = new DataBucket(); $databucket->newBookingOrder($userId, $doctorId, $schedule, $disease, $bookingGoal, $hospital, $userCategory, $description, $attachmentIds, $deviceType, $patientId); $res = $databucket->content; return $res['orderId']; }/*}}}*/
<li><a href="#"><i class="fa fa-pinterest"></i></a></li> <li><a href="#"><i class="fa fa-google-plus"></i></a></li> </ul> </div><!-- end .wrap --> </div><!-- end .main-menu --> <div class="sub-navigation"> <div class="wrap"> <!-- popular words --> <div class="popular-words"> <strong>Popular tags:</strong> <?php if (isset($_SESSION)) { echo 'Welcome, ' . $_SESSION['username'] . '. | '; DataBucket::get_member_menu(); } else { DataBucket::get_login_menu(); } ?> </div> <!-- search form get_search_form(); --> <form id="searchform2" class="header-search" method="get" action="#"> <input placeholder="Live Search ..." type="text" name="s" id="s" /> <input type="submit" value="Search" class="buttonicon" /> </form> </div><!-- end .wrap --> </div> </header><!-- end #header --><!-- Begin Wrap Content --> <section class="wrap">
private function getAttachmentInfoByAttachId($attachmentId) {/*{{{*/ $dataBucket = new DataBucket(); $attachmentInfo = $dataBucket->getAttachmentByAttachmentId($attachmentId); $info = array(); $info['attachmentId'] = $attachmentId; $info['thumbnailUrl'] = $attachmentInfo['thumbnailUrl']; $info['url'] = $attachmentInfo['url']; $info['attachmentType'] = $attachmentInfo['attachmentType']; $info['innerHtml'] = $attachmentInfo['innerHtml']; $info['canClick'] = 1; return $info; }/*}}}*/
public static function get_event_venue($id) { $data = new DataBucket(); $data->get_events_by_id($id); echo $data->get_events_by_id($id)['event_venue']; }
<div class="views-nr">3903<div class="clear"></div></div> <div class="article-meta"><a href="#" class="zilla-likes" id="zilla-likes-333" title="Like this"><span class="zilla-likes-count">435</span> <span class="zilla-likes-postfix"></span></a></div> <div class="article-meta">By <a href="http://anthemes.net/themes/boutique/author/anthemes/" title="Posts by AnThemes" rel="author">AnThemes</a></div> <div class="article-meta">2 years ago</div> <div class="article-meta">In <a href="http://anthemes.net/themes/boutique/category/stock-photo/" title="View all posts in Stock Photo" rel="category tag">Stock Photo</a> · <a href="http://anthemes.net/themes/boutique/category/us-world/" title="View all posts in US & World" rel="category tag">US & World</a></div> <div class="clear"></div> </div><div class="clear"></div> <div class="entry"> <!-- entry banner --> <div class="entry-banner"> <a href="#"><img src="" width="300" height="250" alt="banner"></a> </div> <!-- entry content --> <p><?php echo DataBucket::get_event_content($id); ?> .</p> <div class="clear"></div> <!-- tags --> <div class="simplebtn smallbtn red-entry"><a href="http://anthemes.net/themes/boutique/tag/images/" rel="tag">images</a> · <a href="http://anthemes.net/themes/boutique/tag/photo/" rel="tag">photo</a> · <a href="http://anthemes.net/themes/boutique/tag/watch/" rel="tag">watch</a></div> <div class="clear"></div> <!-- social share icons --> <div class="clear"></div> <div class="single-share"> <div class="sleft"> <div id="___plusone_0" style="text-indent: 0px; margin: 0px; padding: 0px; background-color: transparent; border-style: none; float: none; line-height: normal; font-size: 1px; vertical-align: baseline; display: inline-block; width: 90px; height: 20px; background-position: initial initial; background-repeat: initial initial;"><iframe frameborder="0" hspace="0" marginheight="0" marginwidth="0" scrolling="no" style="position: static; top: 0px; width: 90px; margin: 0px; border-style: none; left: 0px; visibility: visible; height: 20px;" tabindex="0" vspace="0" width="100%" id="I0_1441079627746" name="I0_1441079627746" src="https://apis.google.com/u/0/se/0/_/+1/fastbutton?usegapi=1&size=medium&origin=http%3A%2F%2Fanthemes.net&url=http%3A%2F%2Fanthemes.net%2Fthemes%2Fboutique%2Fsuper-bowl-2014-ads-watch-commercials-watch-them-all-here%2F&gsrc=3p&ic=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en.ew96GqKYpwE.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Ft%3Dzcms%2Frs%3DAGLTcCMZMDhwOajlbll0mYcoX5GBt7lOuQ#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Conload&id=I0_1441079627746&parent=http%3A%2F%2Fanthemes.net&pfname=&rpctoken=38022615" data-gapiattached="true" title="+1"></iframe></div> <script type="text/javascript">(function(){var a=document.createElement("script"),b=document.getElementsByTagName("script")[0];a.type="text/javascript";a.async=true;a.src="https://apis.google.com/js/plusone.js";b.parentNode.insertBefore(a,b)})();</script> </div>
<?php include 'includes/header.php'; ?> <?php if (isset($_GET['page'])) { DataBucket::x_route($_GET['page']); $_GET['page'] = 'main.php'; } ?> <!-- Begin Sidebar (right) --> <aside class="sidebar"> <div class="widget widget_text"><h3 class="title"><span>Advertisement</span></h3><div class="clear"></div> <div class="textwidget"><a href="#" target="_blank"><img src="assets/img/209024-1392396975.jpg" width="300" height="250" alt="banner" /></a></div> </div><div class="widget widget_categories"><h3 class="title"><span>Categories</span></h3><div class="clear"></div><select name='cat' id='cat' class='postform' > <option value='-1'>Select Category</option> <option class="level-0" value="2">Architecture</option> <option class="level-0" value="3">Gallery</option> <option class="level-0" value="4">Health</option> <option class="level-0" value="5">Premium</option> <option class="level-0" value="6">Reviews</option> <option class="level-0" value="7">Social Media</option> <option class="level-0" value="8">Stock Photo</option> <option class="level-0" value="9">Technology</option> <option class="level-0" value="10">Themes</option> <option class="level-0" value="11">US & World</option> <option class="level-0" value="12">Vimeo</option>
/** * Created by PhpStorm. * User: Celine * Date: 8/31/15 * Time: 10:08 PM */ spl_autoload_register(function ($class) { require_once "class/{$class}.php"; }); ?> <!-- Begin Main Content --> <div class="main-content"> <ul class="example-1"> <?php DataBucket::get_events_list(); ?> </ul><!-- end .example-1 --> <div id="nav-below" class="pagination" style="display: none;"> <div class="nav-previous"></div> <div class="nav-next"><a href="#" >Older Entries ›</a></div> <div class="clear"></div> </div> </div><!-- end .main-content -->
public function getNoticeCountByUserId($userId) {/*{{{*/ $user = DAL::get()->find('user', $userId); if ($user->isNull()) { $this->setErrorCode(107); return 0; } $msgCount = StationLetterClient::getInstance()->getUnreadMsgCount($userId); if($user->hasConfirmedSpace() && $user->space->isDoctor()) { $doctor = DAL::get()->find('doctor', $user->space->host->id); $res = DataBucket::checkDoctorAndSpace($doctor); if($res) { $this->setErrorCode($res); return 0; } $unConfirmedCaseCount = $doctor->space->caseCount - $doctor->space->confirmedCaseCount; $count = $msgCount + $unConfirmedCaseCount; } else { $count = $msgCount; } $this->content = array('count'=> $count); }/*}}}*/