<?php if (!defined('BASEPATH')) { exit('No direct script access allowed'); } $config['uri'] = 'menus'; $config['admin']['per_page'] = '20'; $config['admin']['step_page'] = '5'; $config['admin']['allow_per_page'] = array(5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100, 150, 200); $config['path']['images'] = assets_uploads() . 'images/menus/objects/'; $config['path']['icons'] = assets_uploads() . 'images/menus/icons/'; //$config['path']['images_teachers'] = assets_uploads().'images/duc/teachers/'; $config['path']['root'] = FCPATH; $config['user']['per_page'] = '7'; $config['user']['step_page'] = '5'; // варианты кол-ва строк на странице $config['user']['allow_per_page'] = array(3, 5, 7, 10, 20, 50, 100); // Кол-во спец предложений на главной $config['user']['count_special_main'] = 4; // Кол-во спец предложений на внутренней $config['user']['count_special'] = 6;
echo 'Договор на сиделку с проживанием'; echo '</a>'; echo '</td>'; echo '</tr>'; echo '<tr>'; echo '<td colspan="2" background="' . assets_img('02.gif', false) . '"><img src="' . assets_img('00.gif', false) . '" width="238" height="1"></td>'; echo '</tr>'; echo '</table>'; echo '<table width="100%" cellpadding="0">'; echo '<tr>'; echo '<td width="6%" align="left"><img src="' . assets_img('word.gif', false) . '"></td>'; //echo '<td width="94%" height="20" class="menu3">'; //echo $this->bufer->pages['id']; //echo $item['data']['id']; echo '<td width="94%" 1height="20" class="menu4">'; echo '<a href="/' . assets_uploads('files/dogovor_help_sidelki.doc') . '">'; echo 'Договор на сиделку с почасовой оплатой'; echo '</a>'; echo '</td>'; echo '</tr>'; echo '<tr>'; echo '<td colspan="2" background="' . assets_img('02.gif', false) . '"><img src="' . assets_img('00.gif', false) . '" width="238" height="1"></td>'; echo '</tr>'; echo '</table>'; echo '</td>'; echo '<td width="5%"> </td>'; echo '</tr>'; echo '<tr>'; echo '<td height="10" colspan="3"><img src="' . assets_img('00.gif', false) . '" width="1" height="10"></td>'; echo '</tr>'; echo '</table>';
<?php if (!defined('BASEPATH')) { exit('No direct script access allowed'); } $config['uri'] = 'advert'; $config['admin']['per_page'] = '10'; $config['admin']['step_page'] = '5'; $config['admin']['allow_per_page'] = array(3, 5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100, 150, 200); $config['admin']['allow_sorter'] = array('ids' => 'id', 'show' => 'show_i', 'sort' => 'sort_i', 'vip', 'name', 'date' => 'date_create'); $config['admin']['allow_direct'] = array('asc' => 'asc', 'desc' => 'desc'); $config['path']['images'] = assets_uploads() . 'images/advert/'; $config['path']['icons'] = assets_uploads() . 'images/advert/icons/'; $config['path']['root'] = FCPATH; $config['user']['per_page'] = '7'; $config['user']['step_page'] = '5'; // варианты кол-ва строк на странице $config['user']['allow_per_page'] = array(3, 5, 7, 10, 20, 50, 100);
echo assets_uploads() . 'images/partners/lufthansa.jpg'; ?> " title="Люфтганза"> </a> </div> <div class="item"> <a href="http://www.dobrota.ru" target="_blank"> <img src="/<?php echo assets_uploads() . 'images/partners/dobrota-16.gif'; ?> " title="доброта.ру"> </a> </div> <div class="item"> <a href="http://www.gornichnaya.ru" target="_blank"> <img src="/<?php echo assets_uploads() . 'images/partners/gornichnaya.gif'; ?> " title="горничная"> </a> </div> <div class="item"> <a href="http://www.prikaz227.ru" target="_blank"> <img src="/<?php echo assets_uploads() . 'images/partners/star.jpg'; ?> " title="Забытый батальон"> </a> </div> </div>
//стиль кнопки $style = ' .upload_files{ padding:10px; } .load-button { background-color: transparent; border: none; padding: 0px; } .uploadify:hover .load-button { background-color: transparent; } '; assets_style($style, false); $script = "\r\n \$(function() {\r\n \$('#" . $id_upload . "').uploadify({\r 'formData' : {'" . $field_group . "' : 0, '" . $field_nameIsFile . "': 1},\r\n 'swf' : '/" . assets_uploads('services') . "/uploadify.swf',\r\n 'uploader' : '/ajax/?resource=photos_package_action/ajax/duc',\r\n 'auto' : false,\r\n 'fileTypeExts' : '*.gif; *.jpg; *.png; *.jpeg',\r\n 'fileObjName' : '" . $field_upload . "',\r\n 'buttonText' : 'Выберите файлы для загрузки...',\r\n 'buttonClass' : 'load-button',\r\n 'debug' : true,\r\n 'width' : 300,\r\n 'uploadLimit' : 50,\r\n 'fileSizeLimit' : '6000KB',\r\n 'onUploadSuccess' : function(file, data, response) {\r\n //alert('The file ' + file.name + ' was successfully uploaded with a response of ' + response + ':' + data);\r\n\r\n },\r\n 'onUploadError' : function(file, errorCode, errorMsg, errorString) {\r\n alert('The file ' + file.name + ' could not be uploaded: ' + errorString);\r\n },\r\n 'onUploadComplete' : function(file) {\r\n //alert('The file ' + file.name + ' finished processing.');\r\n },\r\n 'onUploadStart' : function(file) {\r\n var group = \$('#" . $id_group . "').val();\r\n //var nameFile = \$('#" . $id_nameIsFile . "').val();\r\n //var nameFile = \$(\"input[name='" . $id_nameIsFile . "']\").val();\r\n if(\$('#" . $id_nameIsFile . "').is(\":checked\")){\r\n\t\t\t\tvar nameFile = 1;\r\n\t\t\t\t//alert(\"Отмечен\");// делаем что-то, когда чекбокс включен\r\n\t\t\t}else{\r\n\t\t\t\tvar nameFile = 0;\r\n\t\t\t\t//alert(\"Отметка снята\");// делаем что-то другое, когда чекбокс выключен\r\n\t\t\t};\r\n\r\n //var group = 0;\r\n //alert('Выбрана группа: ' + group);\r\n if((typeof group !== 'undefined') && (group > 0)){\r\n \t\$('#" . $id_upload . "').uploadify('settings','formData', {'" . $field_group . "': group, '" . $field_nameIsFile . "': nameFile});\r\n \t//alert('Выбрана группа: ' + group);\r\n }else{\r \talert('Не выбран коллектив');\r\n };\r\n },\r\n 'onQueueComplete' : function(queueData) {\r\n alert(queueData.uploadsSuccessful + ' files were successfully uploaded.');\r\n },\r\n 'onUploadProgress' : function(file, bytesUploaded, bytesTotal, totalBytesUploaded, totalBytesTotal) {\r\n \$('#progress').html(totalBytesUploaded + ' bytes uploaded of ' + totalBytesTotal + ' bytes.');\r\n }\r\n // Put your options here\r\n });\r\n});\r\n\r\n\r\n"; assets_script($script, false); //echo '<script>'; //echo $script; //echo '</script>'; ?> <div class="upload_files"> <p> Выберите коллектив: <?php $groups = Modules::run('duc/duc_groups/listGroups'); $js = 'id="' . $id_group . '"'; echo form_dropdown($field_group, $groups, '', $js); echo '</p>'; echo '<p>';
<?php if (!defined('BASEPATH')) { exit('No direct script access allowed'); } $config['uri'] = 'duc'; $config['admin']['per_page'] = '20'; $config['admin']['step_page'] = '5'; $config['admin']['allow_per_page'] = array(5, 6, 7, 8, 9, 10, 15, 20, 30, 50, 100, 150, 200); $config['path']['images'] = assets_uploads() . 'images/duc/objects/'; $config['path']['icons'] = assets_uploads() . 'images/duc/icons/'; $config['path']['images_teachers'] = assets_uploads() . 'images/duc/teachers/'; $config['path']['root'] = FCPATH; $config['user']['per_page'] = '7'; $config['user']['step_page'] = '5'; // варианты кол-ва строк на странице $config['user']['allow_per_page'] = array(3, 5, 7, 10, 20, 50, 100); // Кол-во спец предложений на главной $config['user']['count_special_main'] = 4; // Кол-во спец предложений на внутренней $config['user']['count_special'] = 6;
<?php if (!defined('BASEPATH')) { exit('No direct script access allowed'); } $config['images']['config'] = array('!' => array('allowed_types' => 'gif|jpg|png|jpeg', 'max_size' => '20000', 'max_width' => '10000', 'max_height' => '10000', 'dir' => 'original', 'x' => '1600', 'y' => '1600', 'max_foto' => '20'), 'groups' => array('path' => assets_uploads() . 'images/duc/objects/', 'dir' => 'original', 'x' => '1600', 'y' => '1600', 'max_foto' => '20', 'name' => 'Коллективы'), 'teachers' => array('path' => assets_uploads() . 'images/duc/teachers/', 'path_resize' => assets_uploads() . 'images/duc/teachers/', 'dir' => 'ori', 'x' => '1600', 'y' => '1600', 'maintain_ratio' => true, 'max_foto' => '1', 'name' => 'Педагоги')); $config['images']['resize'] = array('groups' => array('big' => array('dir' => 'big', 'x' => '1280', 'y' => '1024', 'name' => 'Большое'), 'middle' => array('dir' => 'middle', 'x' => '800', 'y' => '600', 'name' => 'Среднее'), 'small' => array('dir' => 'small', 'x' => '360', 'y' => '240', 'name' => 'Маленькое', 'maintain_ratio' => false, 'master_dim' => 'fix'), 'mini' => array('dir' => 'mini', 'x' => '80', 'y' => '60', 'name' => 'Миниатюра')), 'teachers' => array('big' => array('dir' => 'big', 'x' => '1280', 'y' => '1024', 'name' => 'Большое'), 'small' => array('dir' => 'small', 'x' => '320', 'y' => '240', 'name' => 'Маленькое'), 'mini' => array('dir' => 'mini', 'x' => '60', 'y' => '100', 'name' => 'Миниатюра', 'maintain_ratio' => false, 'master_dim' => 'fix')));
<?php if (!defined('BASEPATH')) { exit('No direct script access allowed'); } $config['images']['config'] = array('!' => array('allowed_types' => 'gif|jpg|png|jpeg', 'max_size' => '20000', 'max_width' => '10000', 'max_height' => '10000', 'dir' => 'original', 'x' => '1600', 'y' => '1600', 'max_foto' => '20'), 'trees' => array('path' => assets_uploads() . 'images/menus/trees/', 'path_resize' => assets_uploads() . 'images/menus/trees_size/', 'dir' => 'original', 'x' => '1600', 'y' => '1600', 'max_foto' => '20', 'name' => 'Дерево меню'), 'places' => array('path' => assets_uploads() . 'images/menus/places/', 'path_resize' => assets_uploads() . 'images/menus/places/', 'dir' => 'ori', 'x' => '1600', 'y' => '1600', 'maintain_ratio' => true, 'max_foto' => '1', 'name' => 'Место расположения'), 'groups' => array('path' => assets_uploads() . 'images/menus/groups/', 'path_resize' => assets_uploads() . 'images/menus/groups/', 'dir' => 'ori', 'x' => '1600', 'y' => '1600', 'maintain_ratio' => true, 'max_foto' => '1', 'name' => 'Группа')); $config['images']['resize'] = array('trees' => array('big' => array('dir' => 'big', 'x' => '140', 'y' => '120', 'name' => 'Большое'), 'middle' => array('dir' => 'middle', 'x' => '70', 'y' => '60', 'name' => 'Среднее'), 'small' => array('dir' => 'small', 'x' => '35', 'y' => '30', 'name' => 'Маленькое'), 'mini' => array('dir' => 'mini', 'x' => '20', 'y' => '17', 'name' => 'Миниатюра')));