コード例 #1
0
 public function actionInsertrecord()
 {
     $factory = Factory::getinstance();
     $factory->insertrecord();
 }
コード例 #2
0
				<div class="text-right">
					<p >上海工程技术大学</p>
					<p >学生处&nbsp;&nbsp;&nbsp;</p>
				</div>
			</div>
		</div>
		<br/>
		<br/>
		<br/>
		<br/>
		<div class="container pp" style="font-family:"宋体";font-size:26px;padding: 0px;margin: 0px;border: 0px;">
			<div>
				<div class="post">
					<div class="text-right">
					<?php 
$factory = Factory::getinstance();
$time = '20' . date('y.m.d', time());
$month = $factory->promonth($time);
$day = $factory->proday($time);
?>
					<p><?php 
echo $day . "." . $month . "." . date('20y', time());
?>
</p>
					</div>
					<p>Dear Madam or Sir,</p>
					<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This confirms that <?php 
echo Html::encode($session['st_nameEN']);
?>
, a student of Shanghai University of Engineering Science (Class <?php 
echo Html::encode($session['stu']->st_class);
コード例 #3
0
 /**
  * Finds the Record model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param string $todaydetail
  * @param string $st_classmark
  * @return Record the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($todaydetail, $st_classmark)
 {
     $factory = Factory::getinstance();
     // if (($model = Record::findOne(['todaydetail' => $todaydetail, 'st_classmark' => $st_classmark])) !== null)
     if (($model = $factory->findkeyrecord($todaydetail, $st_classmark)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }