<div class='nc-field'><?= nc_string_field('Descr', "maxlength='255' size='50'", ($class_id ? $class_id : $classID), 1) ?></div> <div class='nc-field'><?= nc_file_field('Picture', "size='50'", ($class_id ? $class_id : $classID), 1) ?></div> <div class='nc-field'><?= nc_string_field('Video', "maxlength='255' size='50'", ($class_id ? $class_id : $classID), 1) ?></div> <div class='nc-field image--box'> <img class="image--field" src="<?= $nc_core->HTTP_FILES_PATH . explode(":", $cc_settings['Bg'])[3] ?>" /> <div class="image--marker"></div> </div> <div class='nc-field'> <span class="nc-field-caption">Координаты:</span> <?= nc_float_field('X', 'id="f_X" type="number" style="width:60px;" min="0" max="100"', ( $class_id ? $class_id : $classID)) ?> : <?= nc_float_field('Y', 'id="f_Y" type="number" style="width:60px;" min="0" max="100"', ( $class_id ? $class_id : $classID)) ?> </div> <style> .image--box { position: relative; } .image--field { max-width: 100%; max-height: 100%; padding: 0; margin: 0; cursor: pointer; } .image--marker { position: absolute;
<? if($stones = $db->get_results("SELECT s.Subdivision_Name,a.Message_ID,a.Name,a.Article FROM Message2006 a LEFT JOIN Subdivision s ON a.Subdivision_ID=s.Subdivision_ID ".($cc_settings['Stone_Sub_ID'] ? 'WHERE a.Subdivision_ID='.$cc_settings['Stone_Sub_ID'] : '')." ORDER BY s.Priority,s.Subdivision_ID,a.Priority,a.Message_ID", ARRAY_A)){ $prev_sub = null; foreach($stones as $data){ if($prev_sub!=$data['Subdivision_Name']){ if($prev_sub) echo '</optgroup>'; echo '<optgroup label="'.$data['Subdivision_Name'].'">'; $prev_sub = $data['Subdivision_Name']; } echo '<option value="'.$data['Message_ID'].'"'.($data['Message_ID']==$f_Stone_ID ? " selected" : "").'>'.$data['Article'].': '.$data['Name'].'</option>'; } if($prev_sub) echo '</optgroup>'; } ?> </select> </div> <div class='nc-field'><?= nc_float_field('InStock', "size='12'", ($class_id ? $class_id : $classID ), 1) ?></div> <div class='nc-field'><?= nc_float_field('Price', "maxlength='12' size='12'", ($class_id ? $class_id : $classID), 1) ?></div> <div class='nc-field'><?= nc_float_field('PriceUSD', "maxlength='12' size='12'", ($class_id ? $class_id : $classID), 1) ?></div> <div class='nc-field'><?= nc_float_field('PriceOpt', "maxlength='12' size='12'", ( $class_id ? $class_id : $classID), 1) ?></div> <div class='nc-field'><?= nc_float_field('PriceAction', "maxlength='12' size='12'", ( $class_id ? $class_id : $classID), 1) ?></div>
function nc_multiple_changes_float($field_name, $message, $value, $style = "", $classID = "", $caption = false) { return nc_replace_name_for_multiple_changes(nc_float_field($field_name, $style, $classID, $caption, $value), $field_name, $message); }
<div class='nc-field'><?= nc_string_field('H1', "maxlength='255' size='50'", ($class_id ? $class_id : $classID), 1) ?></div> <?= $f_Pictures->settings->preview(460,345,1) ?> <div class='nc-field'><?= $f_Pictures->form() ?></div> <div class='nc-field'><?= nc_text_field('Text', "", ($class_id ? $class_id : $classID), 1) ?></div> <h3>Географические координаты для карты проектов</h3> <div class="nc-field"> <span class="nc-field-caption">Широта</span> <?= nc_float_field('Lat', 'size="12"', ($class_id ? $class_id : $classID)) ?> </div> <div class="nc-field"> <span class="nc-field-caption">Долгота</span> <?= nc_float_field('Lon', 'size="12"', ($class_id ? $class_id : $classID)) ?> </div> <h3>Использованные материалы</h3> <? if(isset($_POST['stones'])) $stones = $_POST['stones']; else if($tmp = $db->get_col("SELECT Stone_ID FROM Project_Stone_Rel WHERE Project_ID=".$message)) $stones = $tmp; else $stones = array(); if($_stones = $db->get_results("SELECT a.Message_ID,a.Name, s.Subdivision_Name FROM Message2006 a LEFT JOIN Subdivision s ON s.Subdivision_ID=a.Subdivision_ID GROUP BY a.Message_ID ORDER BY s.Priority, s.Subdivision_ID, a.Priority, a.Message_ID ", ARRAY_A)){ $prev_sub = null;