Пример #1
0
				<?php 
    foreach ($pictures as $picture) {
        ?>

					<li>
						<figure class="image">

							<div class="image thumbnail" style="background-image:url('<?php 
        echo storage_helper::getFileURL($picture['file_service_id'], $picture['file_path'], $picture['file_name'], $picture['file_ext'], 't');
        ?>
');"></div>

							<div class="overlay top-left check hidden">
								<?php 
        echo form_helper::checkbox('picture_id[]', $picture['picture_id'], '', array('class' => 'checkbox item-picture-checker', 'id' => 'field-picture-checker-' . $picture['picture_id']));
        ?>
							</div>

							<div class="overlay top-right actions hidden">
								<ul class="unstyled">
									<li><?php 
        echo html_helper::anchor('cp/plugins/classifieds/pictures/edit/' . $picture['ad_id'] . '/' . $picture['picture_id'], __('edit', 'system'), array('class' => 'edit'));
        ?>
</li>
									<li><?php 
        echo html_helper::anchor('cp/plugins/classifieds/pictures/delete/' . $picture['ad_id'] . '/' . $picture['picture_id'] . '?' . $qstring['url'] . 'page=' . $qstring['page'], __('delete', 'system'), array('data-html' => __('picture_delete?', 'pictures'), 'data-role' => 'confirm', 'class' => 'delete'));
        ?>
</li>
								</ul>
							</div>
Пример #2
0
				<?php 
    foreach ($users as $user) {
        ?>

					<li>
						<figure class="image">

							<div class="image thumbnail" style="background-image:url('<?php 
        echo storage_helper::getFileURL($user['picture_file_service_id'], $user['picture_file_path'], $user['picture_file_name'], $user['picture_file_ext'], 'p');
        ?>
');"></div>

							<div class="overlay top-left check hidden">
								<?php 
        echo form_helper::checkbox('user_id[]', $user['user_id'], '', array('class' => 'checkbox hidden item-picture-checker', 'id' => 'field-picture-checker-' . $user['user_id']));
        ?>
							</div>

							<div class="overlay top-right actions hidden">
								<ul class="unstyled">
									<li><?php 
        echo html_helper::anchor('cp/users/edit/' . $user['user_id'], __('edit', 'system'), array('class' => 'edit'));
        ?>
</li>
									<li><?php 
        echo html_helper::anchor('cp/users/pictures/delete/' . $user['user_id'] . '?' . $qstring['url'] . 'page=' . $qstring['page'], __('delete', 'system'), array('data-html' => __('picture_delete?', 'users_picture'), 'data-role' => 'confirm', 'class' => 'delete'));
        ?>
</li>
								</ul>
							</div>
Пример #3
0
 <?php 
        echo isset($field['class']) && $field['class'] ? $field['class'] : '';
        ?>
 clearfix" <?php 
        echo isset($field['style']) && $field['style'] ? 'style="' . $field['style'] . '"' : '';
        ?>
>
			<?php 
        foreach ($field['items'] as $itemID => $itemName) {
            ?>
				<label>
					<?php 
            if ($field['type'] == 'checkbox' || isset($field['config']['search_options']) && $field['config']['search_options'] == 'multiple') {
                ?>
						<?php 
                echo form_helper::checkbox($name . '[]', $itemID, form_helper::setCheckbox($name, $itemID, isset($value[$name]) && is_array($value[$name]) && $value[$name] ? array_values($value[$name]) : array()), array('class' => 'checkbox', 'id' => $id . '_' . $itemID));
                ?>
					<?php 
            } else {
                ?>
						<?php 
                echo form_helper::radio($name, $itemID, form_helper::setRadio($name, $itemID, isset($value[$name]) ? $value[$name] : ''), array('class' => 'radio', 'id' => $id . '_' . $itemID));
                ?>
					<?php 
            }
            ?>
					<?php 
            echo $itemName;
            ?>
				</label>
			<?php 
Пример #4
0
					<?php 
        foreach ($row as $keyword => $column) {
            ?>

						<td<?php 
            echo isset($grid['header'][$keyword]['class']) || isset($column['class']) ? ' class="' . (isset($grid['header'][$keyword]['class']) ? $grid['header'][$keyword]['class'] : '') . (isset($column['class']) ? ' ' . $column['class'] : '') . '"' : '';
            ?>
>

							<?php 
            if ($keyword == 'check') {
                ?>

								<?php 
                echo form_helper::checkbox($grid['header'][$keyword]['html'] . '[]', $column['html'], '', array('class' => 'checkbox item_' . $grid['header'][$keyword]['html'] . '_checkbox', 'id' => 'input_edit_' . $grid['header'][$keyword]['html'] . '_' . $column['html']));
                ?>

							<?php 
            } elseif ($keyword == 'actions' && is_array($column['html'])) {
                ?>

								<ul class="unstyled actions">
									<?php 
                foreach ($column['html'] as $class => $item) {
                    ?>
										<li class="<?php 
                    echo $class;
                    ?>
"><?php 
                    echo $item;
Пример #5
0
                ?>
					<span class="view">
						<?php 
                echo html_helper::anchor(storage_helper::getFileURL(isset($value['file_service_id']) ? $value['file_service_id'] : '', isset($value['file_path']) ? $value['file_path'] : '', isset($value['file_name']) ? $value['file_name'] : '', isset($value['file_ext']) ? $value['file_ext'] : '', isset($value['file_suffix']) ? $value['file_suffix'] : ''), __('view_file', 'system'), array('target' => '_blank'));
                ?>
					</span>
				<?php 
            }
            ?>
				<?php 
            if (isset($value['file_delete']) && $value['file_delete']) {
                ?>
					<span class="delete">
						<label>
							<?php 
                echo form_helper::checkbox($name . '__delete', 1, false, array('class' => 'checkbox'));
                ?>
 <?php 
                echo __('file_delete', 'system');
                ?>
						</label>
					</span>
				<?php 
            }
            ?>
			</div>
			<div class="clearfix"></div>
		<?php 
        }
        ?>
		<?php