Ejemplo n.º 1
0
				<span class="tngay">Ngày: 
                    <a href="/ket-qua-xo-so/<?php 
        echo $itemnam->date;
        ?>
.html" title="Click xem KQXS 3 Miền Ngày: <?php 
        echo $itemnam->date;
        ?>
">
                      <?php 
        echo $itemnam->date;
        ?>
                    </a>
                </span>
                <span class="phathanh">
                <?php 
        $tinh = Tinh::model()->findByPk($itemnam->provice);
        ?>
                        <a href="/xo-so-mien-nam/tay-ninh.html" title="<?php 
        echo $tinh->tinh;
        ?>
">
                          <?php 
        echo $tinh->tinh;
        ?>
                        </a></span></td>
		</tr>
		<tr>
			<td class="giaidbl">
				<a href=" /thong-tin/co-cau-giai-thuong-mien-bac.html">Giải ĐB</a></td>
			<td class="giaidb">
				<div><?php 
Ejemplo n.º 2
0
            </div>
            
            <div class="col-xs-6 pull-right hidden-xs hidden-sm">
                <form method="get" action="<?php 
echo $this->createUrl("/do-ve-so-online.html");
?>
">
                <div class="jumbotron form-inline">
                    <input type="text" name="ngay" value="<?php 
echo date("d-m-Y", time());
?>
" class="hasDatepick ngaydove inputsearch form-control" placeholder="Ngày" /> &nbsp; 
                    <input type="text" name="so" class="inputsearch form-control" placeholder="Vé số" /> &nbsp; 
                   <select name="tinh" class="inputsearch form-control">
                        <?php 
$tinh = Tinh::model()->findAll();
foreach ($tinh as $tinhitem) {
    ?>
                        <option value="<?php 
    echo $tinhitem->id;
    ?>
"><?php 
    echo $tinhitem->tinh;
    ?>
</option>
                        <?php 
}
?>
                    </select> &nbsp; 
                    <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-search"></span> Dò</button>
                </div>
Ejemplo n.º 3
0
echo $form->labelEx($model, 'loaive');
?>
		<?php 
echo $form->textField($model, 'loaive', array("style" => "width:200px"));
?>
		<?php 
echo $form->error($model, 'loaive');
?>
	</div>

	<div class="control-group">
		<?php 
echo $form->labelEx($model, 'provice');
?>
		<?php 
echo $form->dropDownList($model, 'provice', CHtml::listData(Tinh::model()->findAll("mien=2"), 'id', 'tinh'));
?>
		<?php 
echo $form->error($model, 'provice');
?>
	</div>

	<div class="control-group">
		<?php 
echo $form->labelEx($model, 'image');
?>
		<?php 
echo $form->fileField($model, 'image');
?>
		<?php 
echo $form->error($model, 'image');
Ejemplo n.º 4
0
css/drop-dow.gif" width="15" /> <span style="color: #f1ad43; font-weight: bold;">Xổ Số Miền Trung</span></td>
        </tr>
       <?php 
            }
        }
    }
    ?>
        <tr>
            <td align="left">&nbsp;</td>
            <td>
                <table width="100%">
                    <?php 
    foreach (${$key} as $itemnam) {
        ?>
                    <?php 
        $tinh = Tinh::model()->findByPk($itemnam);
        ?>
                    <tr>
                        <td align="left"><img src="<?php 
        echo Yii::app()->homeUrl;
        ?>
img/arrow_1.gif" /> Kết quả <?php 
        echo $tinh->tinh;
        ?>
 </td>
                        <td align="right" class="tinh<?php 
        echo $itemnam;
        ?>
">
                            <?php 
        if (date("H", time()) <= 16 && date("i", time()) <= 10) {
Ejemplo n.º 5
0
 public static function getProvince($item)
 {
     $data = Tinh::model()->findByPk($item);
     return $data->tinh;
 }
Ejemplo n.º 6
0
<?php

if (isset($_GET['page_id'])) {
    $page_id = (int) $_GET['page_id'];
    require_once "model/Page.php";
    $model = new Page();
    $detail = $model->getDetailPage($page_id);
}
require_once "model/Tinh.php";
$modelTinh = new Tinh();
$arrHot = $modelTinh->getListTinh(-1, '', 1, 0, 20);
?>

<script type="text/javascript" src="static/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="static/ckfinder/ckfinder.js"></script>
<script type="text/javascript" src="static/js/ajaxupload.js"></script>
<script type="text/javascript">
function BrowseServer( startupPath, functionData ){    
    var finder = new CKFinder();
    finder.basePath = 'ckfinder/'; //Đường path nơi đặt ckfinder
    finder.startupPath = startupPath; //Đường path hiện sẵn cho user chọn file
    finder.selectActionFunction = SetFileField; // hàm sẽ được gọi khi 1 file được chọn
    finder.selectActionData = functionData; //id của text field cần hiện địa chỉ hình
    //finder.selectThumbnailActionFunction = ShowThumbnails; //hàm sẽ được gọi khi 1 file thumnail được chọn    
    finder.popup(); // Bật cửa sổ CKFinder
} //BrowseServer

function SetFileField( fileUrl, data ){
    document.getElementById( data["selectActionData"] ).value = fileUrl;
    $('#hinh_dai_dien').attr('src','../' + fileUrl).show();
}
Ejemplo n.º 7
0
<?php

require_once "model/Page.php";
$model = new Page();
$link = "index.php?mod=page&act=list";
$limit = 20;
$arrTotal = $model->getListPage(-1, -1);
require_once "model/Tinh.php";
$modelTinh = new Tinh();
$total_page = ceil($arrTotal['total'] / $limit);
$page = isset($_GET['page']) ? (int) $_GET['page'] : 1;
$offset = $limit * ($page - 1);
$arrList = $model->getListPage($offset, $limit);
?>



<div class="row">

    <div class="col-md-12">

    <button class="btn btn-primary btn-sm right" onclick="location.href='index.php?mod=page&act=form'">Tạo mới</button>        

         <div class="box-header">

                <h3 class="box-title">Danh sách trang</h3>

            </div><!-- /.box-header -->

        <div class="box">
Ejemplo n.º 8
0
<?php

require_once "model/Ticket.php";
$model = new Ticket();
require_once "model/Tinh.php";
$modelTinh = new Tinh();
require_once "model/Place.php";
$modelPlace = new Place();
require_once "model/Nhaxe.php";
$modelNhaxe = new Nhaxe();
require_once "model/Car.php";
$modelCar = new Car();
$link = "index.php?mod=ticket&act=listshort";
$page_show = 20;
/* get ds nha xe */
$arrNhaxe = $modelNhaxe->getListNhaxe('', -1, -1, -1);
/* end get ds nha xe */
/* get ds noi di */
$arrListTinhKey = array();
$arrListTinh = $modelTinh->getListTinh(-1, '', -1, -1, -1);
if (!empty($arrListTinh)) {
    foreach ($arrListTinh['data'] as $value) {
        $arrListTinhKey[$value['tinh_id']] = $value;
    }
}
/* end get ds place */
/* get ds place */
$arrListPlaceKey = array();
$arrListPlace = $modelPlace->getListPlace(-1, '', -1, -1);
if (!empty($arrListPlace)) {
    foreach ($arrListPlace['data'] as $value) {