Пример #1
0
<!DOCTYPE html>
<?php 
use common\utilities\Common;
$common = new Common();
$current_url = $common->getCurrentUrl();
$path_paging = strpos($current_url, '?') !== false ? $current_url . '&' : $current_url . '?';
$path_paging = str_replace("?page=" . $page . "&", "?", $path_paging);
$path_paging = str_replace("&page=" . $page . "&", "&", $path_paging);
$this->title = 'Danh sách quản trị viên';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="box">
    <div class="box-body table-responsive">
        <div id="example1_wrapper" class="dataTables_wrapper form-inline" role="grid">
            <div class="row">
                <div class="col-xs-6" style="float:right">
                    <a href="<?php 
echo \Yii::$app->urlManager->createUrl(['user/create']);
?>
" class="btn btn-primary" style="float:right">Tạo mới</a>
                </div>
            </div>
            <br/>
            <div class="row">
                <div class="col-xs-6">
                    <div id="example1_length" class="dataTables_length">
                        <label>
                            Hiển thị
                            <select size="1" name="example1_length" id="row_per_page" aria-controls="example1" onchange="changeUrl()">
                                <option value="10" <?php 
if ($row_per_page == 10) {
Пример #2
0
            progress.setComplete();
            progress.setStatus("Complete.");
            progress.toggleCancel(false);
            $('#txtFileName').val(filename);
//            $("#urlFile").val(path+'/'+filename);
            $("#show_pic").html('<img src="<?php 
echo Yii::$app->params["url_upload"] . $folder_updload . '/';
?>
'+path +'/'+ filename +'" class="img-100" alt="pic" width="100px">')
        } catch (ex) {
            this.debug(ex);
        }
    }
    var swf_100x100 = {
        uploadUrl : '<?php 
echo Yii::$app->params["url_upload"] . "/upload_picture.php?type=icon&folder_upload=" . $folder_updload . '&t=' . Common::genUploadKey();
?>
',
        progress_id: 'div_icon_100x100',
        button_id : 'span_icon_100x100',
        obj: 'swf_100x100',
        successFunc : uploadSuccess100x100
    };
    configUploadImg(swf_100x100);

    function configUploadImg(config){
        var settings = {
            flash_url : "<?php 
echo Yii::$app->params["url_upload"];
?>
lib_upload/js/swfupload.swf",