Ejemplo n.º 1
0
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ftriskhead-view">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <p>
        <?php 
echo Html::a('Update', ['update', 'id' => $model->risk_id], ['class' => 'btn btn-primary']);
?>
        <?php 
echo Html::a('Delete', ['delete', 'id' => $model->risk_id], ['class' => 'btn btn-danger', 'data' => ['confirm' => 'Are you sure you want to delete this item?', 'method' => 'post']]);
?>
    </p>

    <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['risk_id', 'risk_date', 'event_name', 'ref', 'risk_again', 'department', 'miss', 'safety', 'outcome_pt', 'outcome_guest', 'outcome_staff', 'outcome_price', 'solve_begin', 'sum_solve', 'risk_level', 'risk_head_department', 'risk_status', 'prohead', 'prodetail', 'program_text', 'login_name', 'risk_sum_dep', 'risk_simple', 'date_input', 'last_update', 'last_staff', 'print_url:url', 'act_st', 'clinictype', 'place_id', 'staff', 'date_complete']]);
?>

<div class="panel panel-default">
  <div class="panel-body">
     <?php 
echo dosamigos\gallery\Gallery::widget(['items' => $model->getThumbnails($model->ref, $model->event_name)]);
?>
  </div>
</div>
</div>
Ejemplo n.º 2
0
echo Html::a('<i class="fa fa-print fa-fw"></i> tmp Print', ['temp-cetakpdf', 'kdpo' => $poHeader->KD_PO], ['target' => '_blank', 'class' => 'btn btn-warning btn-xs']);
?>

				</div>
			</div>
		</div>
	</div>
</div>
<?php 
$items = [];
$po_file = FilePo::find()->where(['KD_PO' => $poHeader->KD_PO])->asArray()->all();
foreach ($po_file as $key => $value) {
    # code...
    $items[] = ['src' => 'data:image/pdf;base64,' . $value['IMG_BASE64'], 'imageOptions' => ['width' => "120px", 'height' => "120px", 'class' => 'img-rounded']];
}
$itemAllimge = dosamigos\gallery\Gallery::widget(['items' => $items]);
?>
	<!-- image qotation-->
      <div  class="row">
        <div class="col-xs-1 col-sm-1 col-lg-1">
        </div>
      	<div  class="col-xs-12 col-sm-12 col-lg-12" style="font-family: tahoma ;font-size: 9pt;">
      		<hr style="height:1px;margin-top: 3px; margin-bottom: 1px;font-family: tahoma ;font-size:8pt;">
        </hr>
              <?php 
/* 2 amigos two galerry author mix:wawan and ptr.nov ver 1.0*/
// echo dosamigos\gallery\Gallery::widget([
// 'items' =>  $items]);
echo Html::panel(['heading' => '<div>' . PoAttach_file($poHeader) . '   Quotation/Penawaran</div>', 'body' => $itemAllimge], Html::TYPE_INFO);
?>
      	</div>
Ejemplo n.º 3
0
?>


    
   
     <?php 
$temp = array();
$items = array();
if ($durum == '0') {
    $album_list = Yii::$app->db->createCommand("Select * from album where owner_id=" . Yii::$app->user->getId())->queryAll();
    foreach ($album_list as $key => $value) {
        $temp = Yii::$app->db->createCommand("Select * from photos where album_id=" . $value["id"])->queryAll();
        foreach ($temp as $key => $photos) {
            $items[] = ['url' => Yii::$app->request->BaseUrl . "/uploads/" . $photos["filename"], 'src' => Yii::$app->request->BaseUrl . "/uploads/" . $photos["filename"], 'options' => array('title' => $photos["caption"])];
        }
    }
} else {
    $sql = Yii::$app->db->createCommand("Select * from photos where album_id=" . $id)->queryAll();
    foreach ($sql as $key => $value) {
        $items[] = ['url' => Yii::$app->request->BaseUrl . "/uploads/" . $value["filename"], 'src' => Yii::$app->request->BaseUrl . "/uploads/" . $value["filename"], 'options' => array('title' => $value["caption"])];
    }
}
?>

    <?php 
echo dosamigos\gallery\Gallery::widget(['items' => $items]);
?>


</div>
Ejemplo n.º 4
0
        # code...
        $items[] = ['src' => 'data:image/jpeg;base64,' . $value['IMG_BASE64'], 'imageOptions' => ['width' => "120px", 'height' => "120px", 'class' => 'img-rounded']];
    }
}
?>

	<!-- image qotation-->
	<div  class="row">
	  <div class="col-xs-1 col-sm-1col-lg-1">
	  </div>
		<div  class="col-xs-12 col-sm-12 col-lg-12" style="font-family: tahoma ;font-size: 9pt;">
			<hr style="height:1px;margin-top: 3px; margin-bottom: 1px;font-family: tahoma ;font-size:8pt;">
	  </hr>
			<?php 
/* 2 amigos two galerry author mix:wawan and ptr.nov ver 1.0*/
$viewItemImge = dosamigos\gallery\Gallery::widget(['items' => $items]);
echo Html::panel(['heading' => '<div> view Quotation/Penawaran </div>', 'body' => $viewItemImge], Html::TYPE_INFO);
?>

		</div>
	</div>
</div>
<?php 
/*
 * JS AUTH1 | CREATED
 * @author ptrnov <*****@*****.**>
 * @since 1.2
 */
$this->registerJs("\n\t\t\t\$.fn.modal.Constructor.prototype.enforceFocus = function() {};\n\t\t\t\$('#po-auth1-sign').on('show.bs.modal', function (event) {\n\t\t\t\tvar button = \$(event.relatedTarget)\n\t\t\t\tvar modal = \$(this)\n\t\t\t\tvar title = button.data('title')\n\t\t\t\tvar href = button.attr('href')\n\t\t\t\tmodal.find('.modal-title').html(title)\n\t\t\t\tmodal.find('.modal-body').html('<i class=\"fa fa-spinner fa-spin\"></i>')\n\t\t\t\t\$.post(href)\n\t\t\t\t\t.done(function( data ) {\n\t\t\t\t\t\tmodal.find('.modal-body').html(data)\n\t\t\t\t\t});\n\t\t\t\t}),\n\t", $this::POS_READY);
Modal::begin(['id' => 'po-auth1-sign', 'header' => '<div style="float:left;margin-right:10px">' . Html::img('@web/img_setting/login/login1.png', ['class' => 'pnjg', 'style' => 'width:100px;height:70px;']) . '</div><div style="margin-top:10px;"><h4><b>Signature Authorize</b></h4></div>', 'size' => Modal::SIZE_SMALL, 'headerOptions' => ['style' => 'border-radius:5px; background-color:rgba(230, 251, 225, 1)']]);
Modal::end();
Ejemplo n.º 5
0
use yii\helpers\Html;
use yii\helpers\Url;
?>

<div class="gallery">
    <header>
        <?php 
foreach ($galleryWidget['menu'] as $menu_item) {
    echo Html::a(\Yii::t('app/images', $menu_item), Url::toRoute(['', 'group' => $menu_item]), ['onclick' => "var t = \$(this);\n                            \$.get(this, function(data) {\n                            var links = \$(data).find('.gallery-images a').css('opacity', '0').closest('div').html();\n                            var container = t.closest('.gallery').find('.gallery-images a').closest('div');\n                            container.find('a').each(function(i) {\n                                \$(this).delay(i*50).animate({opacity: '0'});\n                            }).promise().done(function () {\n                                container.html(links).find('a').each(function(i) {\n                                    \$(this).delay(i*50).animate({opacity: '1'});\n                                });\n                            });\n                        });\n                        return false;"]);
}
?>
    </header>
    <article>
        <a class="button button-right">
            <?php 
echo Html::img('img/arrow-white.png');
?>
        </a>
        <div class="gallery-images">
            <?php 
echo dosamigos\gallery\Gallery::widget(['renderTemplate' => false, 'items' => $galleryWidget['items']]);
?>
        </div>
        <a class="button button-left">
            <?php 
echo Html::img('img/arrow-white.png');
?>
        </a>
    </article>
</div>
Ejemplo n.º 6
0
Archivo: view.php Proyecto: poykub/wph
                <?php 
if (Yii::$app->user->can('deleteArticle')) {
    ?>

                    <?php 
    echo Html::a('Delete', ['delete', 'id' => $model->id], ['class' => 'btn btn-danger', 'data' => ['confirm' => 'Are you sure you want to delete this article?', 'method' => 'post']]);
    ?>

                <?php 
}
?>
            </p>

        </div>

    </h1>

    <?php 
echo DetailView::widget(['model' => $model, 'attributes' => [['label' => Yii::t('app', 'Author'), 'value' => $model->authorName], 'title', ['label' => Yii::t('app', 'Category'), 'value' => $model->categoryName], 'created_at:dateTime', 'content:html']]);
?>

    <div class="panel panel-default">
        <div class="panel-body">
            <?php 
echo dosamigos\gallery\Gallery::widget(['items' => $model->getPhotosThumbnails($model->ref, $model->title)]);
?>
        </div>
    </div>

</div>
Ejemplo n.º 7
0
<?php

use yii\imagine\Image;
$galleryArray = json_decode($widget->galleryItems);
if ($galleryArray) {
    echo '<h3>' . $widget->title . '</h3>';
    $items = '';
    foreach ($galleryArray as $image) {
        $items[] = ['url' => $widget->previewUrl . '/' . $image, 'src' => $widget->previewUrl . '/thumbs/' . $image, 'imageOptions' => ['style' => ['max-width' => '200px', 'max-height' => '150px']], 'options' => ['title' => $image, 'style' => 'width:200px', 'class' => 'inline-block']];
    }
    ?>
    <div>
        <?php 
    echo dosamigos\gallery\Gallery::widget(['items' => $items, 'options' => ['id' => 'gallery-widget1-' . $widget->id], 'templateOptions' => ['id' => 'blueimp-gallery1-' . $widget->id], 'clientOptions' => ['container' => '#blueimp-gallery1-' . $widget->id]]);
}
?>
</div>
Ejemplo n.º 8
0
                    <div class="panel-scroller-box">
                        <?php 
echo ListView::widget(['dataProvider' => $wishlists, 'itemView' => '_wishlist', 'summary' => '', 'emptyText' => 'No Wishlists Found']);
?>
                    </div>
                    <!-- Wishlists ends -->
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <!-- photos semi-widget -->
                <div class="col-md-12 semiwidget-white bordered-grey top-fixed-margin">
                    <h4 class="heading-custom-one padding-bottom-sm fonts-md margin-bottom-lg">Latest photos shared with to you</h4>
                    <?php 
echo count($photos) == 0 ? "<h3 class='text-center color-red'>No images shared with you</h3>" : dosamigos\gallery\Gallery::widget(['items' => $photos]);
?>
                </div><!-- photos semi-widget ends -->
            </div>
            <div class="col-md-12">

                <div class="col-md-12 semiwidget-white bordered-grey top-fixed-margin">
                    <h4 class="heading-custom-one padding-bottom-sm fonts-md margin-bottom-lg">Your latest Activities</h4>
                    <?php 
echo ListView::widget(['dataProvider' => $activity, 'options' => ['class' => 'row'], 'itemView' => '_listactivity', 'summary' => '']);
?>
                </div>

            </div>

        </div>
Ejemplo n.º 9
0
/* @var $this yii\web\View */
$this->title = 'Santas Alitas';
?>

<div class="site-index">

    <div class="jumbotron">
        <h1>Nuestas Sucursales!</h1>
    </div>

    <div class="body-content">
        <div class="row">
            <div class="col-lg-4">
                <?php 
echo dosamigos\gallery\Gallery::widget(['items' => $imgSucursal]);
?>
            </div>
            <div class="col-lg-4">

                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
                    dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
                    ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
                    fugiat nulla pariatur.</p>
            </div>
            <div class="col-lg-4">
                    <iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d14933.839836264278!2d-103.2776136!3d20.650858!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x6550333f0e1ab2b!2sEC+System!5e0!3m2!1ses-419!2smx!4v1451934377942" width="auto" height="300" frameborder="0" style="border:0" allowfullscreen></iframe>
            </div>

    </div>
</div>