Ejemplo n.º 1
0
</a></span>
</p>
<div style="height:auto!important;overflow: hidden;clear: both">
    <p class="fw padding10 wz">常见问题</p>
    <?php 
if (empty($jutiques)) {
    ?>
        <p class="fw padding10 wz">抱歉,未能找到该问题。</p>
    <?php 
}
?>
    <ul class="question">
        <?php 
foreach ($jutiques as $k => $v) {
    $TypeID = CsHelpQuestion::model()->findByPk($v['ID']);
    $ID = CsHelpQuestionType::model()->findByPk($TypeID['TypeID']);
    ?>
            <li><a href="javascript:void(0)" onclick="look(<?php 
    echo $v['ID'] . ',' . $ID['ID'];
    ?>
)" ><?php 
    echo $v['Title'];
    ?>
</a></li>
        <?php 
}
?>
        <div class="clear"></div>
    </ul>
</div>
<script>
Ejemplo n.º 2
0
 public function actionaddQuestion3()
 {
     $this->pageTitle = Yii::app()->name . '-' . "填写问题描述";
     $TypeID = Yii::app()->request->getParam('ID');
     $qestype = CsHelpQuestionType::model()->findByPk($TypeID);
     //问题类型
     $this->render('addquestion3', array('questype' => $qestype));
     //        if (!empty($TypeID)) { //判断ID是否为空
     //            $qestype = CsHelpQuestionType::model()->findByPk($TypeID); //问题类型
     //            $this->render('addquestion3', array('questype' => $qestype));
     //        } else {
     //            $this->redirect(array('addquestion'));
     //        }
 }