<?php $root = $_SERVER['DOCUMENT_ROOT']; require_once $root . "/admin/blocks/include.php"; $name_dir = "team_creative"; $maxWidthBig = $maxWidthTeamCreativeBig; $maxHeightBig = $maxHeightTeamCreativeBig; $maxWidthSmall = $maxWidthTeamCreativeSmall; $maxHeightSmall = $maxHeightTeamCreativeSmall; $maxWidthDown = $maxWidthTeamCreativeDown; $maxHeightDown = $maxHeightTeamCreativeDown; $maxWidthThumb = $maxWidthTeamCreativeThumb; $maxHeightThumb = $maxHeightTeamCreativeThumb; $db = db::getInstance(); $editorClass = new editorClass(); if (isset($_POST['id'])) { if (!($id = validClass::validNumber($_POST['id']))) { unset($id); } } if (isset($_POST['name'])) { if (!($name = validClass::sanitiseString($_POST['name']))) { unset($name); } } if (isset($_POST['position'])) { if (!($position = validClass::sanitiseString($_POST['position']))) { unset($position); } } if (isset($_POST['weight'])) {
<script type="text/javascript">//<![CDATA[ Calendar.setup({ inputField : "date_create", trigger : "b_btn", onSelect : function() { this.hide() }, dateFormat : "%d-%m-%Y" }); //]]></script> <?php echo "</td>"; echo "</tr>"; //------------------------------------ echo "<tr>"; echo "<td class='left'>Описание</td>"; echo "<td class='right'>"; $editorClass = new editorClass(); $description = $editorClass->replaceToDraw($item['text_rus']); $editorClass->drawEditor('description_rus', $description); echo "</td>"; echo "</tr>"; //------------------------------------ echo "<tr>"; echo "<td class='left'>Фото отчет"; echo "<div class='help'>"; echo "только *.png <br />"; echo "размер 910x510 px. Групповая загрузка"; echo "</div>"; echo "</td>"; echo "<td class='right' id='images'>"; if ($item != null) { // Достаем фото
echo "<input type='text' name='video' id='video' value=''>"; } echo "</td>"; echo "</tr>"; //------------------------------------ echo "<tr>"; echo "<td class='left'>Заказчик</td>"; echo "<td class='right'>"; echo "<input type='text' name='client' id='client' value='" . $item['title'] . "'>"; echo "</td>"; echo "</tr>"; //------------------------------------ echo "<tr>"; echo "<td class='left'>Описание</td>"; echo "<td class='right'>"; $editorClass = new editorClass(); $description = $editorClass->replaceToDraw($item['description']); $editorClass->drawEditor('description', $description); echo "</td>"; echo "</tr>"; //------------------------------------ echo "<tr>"; echo "<td class='left'> </td>"; echo "<td class='right'>"; echo "<span id='progress-form'></span>"; echo "</td>"; echo "</tr>"; //------------------------------------ echo "<tr>"; echo "<td class='left'> </td>"; echo "<td class='right'>";
if ($val['first_thr'] != 0) { $ckecked = '<input type="checkbox" id="first_' . $val['id'] . '" name="first_' . $val['id'] . '" checked="checked" title="Поставить первой" >'; } else { $ckecked = '<input type="checkbox" id="first_' . $val['id'] . '" name="first_' . $val['id'] . '" title="Поставить первой" >'; } print '<div style="float:left;margin:0 7px 7px 0;"><img src="../../../img/photos/1000/' . $val['file_name'] . '.jpg" style="float:left;width:150px;height:100px;"> <div style="float:left;width:15px;"><a href="#" id="del_photo" data-id="' . $val['id'] . '" style=""><img src="img/b_drop.png" title="удалить"/></a>' . $ckecked . '</div></div>'; } } echo "</div>"; } } else { $disable_select_pomesh = "disabled='disabled'"; echo "<div class='float_left preview_text'>Описание:</div>"; echo "<div class='float_left' style='width:600px;'>"; $editorClass = new editorClass(); $description = $editorClass->replaceToDraw(''); $editorClass->drawEditor('description', $description, 'disabled="disabled"'); echo "</div>"; echo "<div class='clear'></div>"; echo "<div class='preview_text' style='text-decoration:underline;'>РУКОВОДИТЕЛЯМ</div>"; echo "<div class='clear'></div>"; echo "<div class='float_left preview_text'>Стоимость:</div>"; echo "<input class='float_left' style='width:600px;' input type='text' " . $disable_select_pomesh . " name='price' id='price' " . $disable_select_pomesh . " value=''>"; echo "<div class='float_left' style='line-height:25px;' >грн.кв.м</div>"; ////discount echo "<div class='float_left preview_text'>Скидка:</div>"; echo "<input class='float_left' style='width:600px;' input type='text' name='discount' id='discount' " . $disable_select_pomesh . " value=''>"; echo "<div class='float_left' style='line-height:25px;' > %</div>"; echo "<div class='clear'></div>"; echo "<div class='float_left preview_text'>Фирма орендатора:</div>";