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) { // Достаем фото $qwery = "SELECT id, photo \n FROM news_galery \n WHERE id_news='" . $item['id'] . "'";
} 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'>"; echo "<input type='hidden' name='id' value='" . $item['id'] . "'>";
$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>"; echo "<div class='float_left' style='line-height:25px;'></div>";