Changeset e4e4809
- Timestamp:
- Feb 16, 2014, 5:57:11 PM (9 years ago)
- Branches:
- master
- Children:
- 0b38278
- Parents:
- 2d52f43
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
web/articles.php
r2d52f43 re4e4809 121 121 $h = $meta_description = $meta_keywords=''; 122 122 $text = $nxt['text']; 123 if($nxt['type']==0) $text = html_out($text);123 //if($nxt['type']==0) $text = html_out($text); 124 124 if($nxt['type']==0 || $nxt['type']==2) 125 125 { -
web/include/doc.s.agent.php
r2d52f43 re4e4809 22 22 /// Просмотр списка агентов 23 23 function __construct() { 24 $this->agent_vars = array('group', 'name', 'type', 'email', ' fullname', 'tel', 'adres', 'gruzopol', 'inn', 'rs', 'ks', 'okevd', 'okpo', 'bank', 'bik', 'pfio', 'pdol', 'pasp_num', 'pasp_date', 'pasp_kem', 'comment', 'responsible', 'data_sverki', 'dir_fio', 'dir_fio_r', 'dishonest', 'p_agent', 'sms_phone', 'fax_phone', 'alt_phone');24 $this->agent_vars = array('group', 'name', 'type', 'email', 'no_mail', 'fullname', 'tel', 'adres', 'gruzopol', 'inn', 'rs', 'ks', 'okevd', 'okpo', 'bank', 'bik', 'pfio', 'pdol', 'pasp_num', 'pasp_date', 'pasp_kem', 'comment', 'responsible', 'data_sverki', 'dir_fio', 'dir_fio_r', 'dishonest', 'p_agent', 'sms_phone', 'fax_phone', 'alt_phone'); 25 25 } 26 26 function View() { … … 112 112 $html_pagent_name = html_out($pagent_info[0]); 113 113 } 114 115 114 116 115 117 $tmpl->setTitle("Правка агента ".html_out($agent_info['name'])); … … 145 147 $ext=''; 146 148 if(!isAccess('doc_agent_ext', 'edit')) $ext='disabled'; 147 149 150 $no_mail_c = $agent_info['no_mail']?' checked':''; 151 148 152 $tmpl->addContent("</select> 149 <tr class=lin1><td align=right>Адрес электронной почты (e-mail)<td><input type=text name='email' value='".html_out($agent_info['email'])."' class='validate email'> 153 <tr class=lin1><td align=right>Адрес электронной почты (e-mail)<td><input type=text name='email' value='".html_out($agent_info['email'])."' class='validate email'> <label><input type='checkbox' name='no_mail' value='1'{$no_mail_c}>Не отправлять рассылки</label> 150 154 <tr class=lin0><td align=right>Полное название / ФИО:<br><small>Так, как должно быть в документах</small><td><input type=text name='fullname' value='".html_out($agent_info['fullname'])."' style='width: 90%;'> 151 155 <tr class=lin1><td align=right>Телефон:<br><small>В международном формате +XXXXXXXXXXX...<br>без дефисов, пробелов, и пр.символов</small><td><input type=text name='tel' value='".html_out($agent_info['tel'])."' class='phone validate'> … … 301 305 settype($new_agent_info['group'],'int'); 302 306 settype($new_agent_info['dishonest'],'int'); 307 settype($ag_info['no_mail'],'int'); 308 settype($new_agent_info['no_mail'],'int'); 303 309 304 310 if(!isAccess('doc_agent_ext', 'edit')) { -
web/include/doc.s.sklad.php
r2d52f43 re4e4809 2 2 // MultiMag v0.1 - Complex sales system 3 3 // 4 // Copyright (C) 2005-201 3, BlackLight, TND Team, http://tndproject.org4 // Copyright (C) 2005-2014, BlackLight, TND Team, http://tndproject.org 5 5 // 6 6 // This program is free software: you can redistribute it and/or modify … … 25 25 function __construct() { 26 26 $this->pos_vars = array('group', 'name', 'desc', 'proizv', 'cost', 'likvid', 'pos_type', 'hidden', 'unit', 'vc', 'stock', 'warranty', 27 'warranty_type', 'no_export_yml', 'country', 'title_tag', 'meta_keywords', 'meta_description', 'cost_date' );27 'warranty_type', 'no_export_yml', 'country', 'title_tag', 'meta_keywords', 'meta_description', 'cost_date', 'mult', 'bulkcnt'); 28 28 $this->dop_vars = array('type', 'analog', 'koncost', 'd_int', 'd_ext', 'size', 'mass', 'ntd'); 29 29 $this->group_vars = array('name' , 'desc' , 'pid' , 'hidelevel' , 'printname', 'no_export_yml', 'title_tag', 'meta_keywords', 'meta_description'); … … 251 251 252 252 if ($param == '') { 253 $pres = $db->query("SELECT `doc_base`.`group`, `doc_base`.`name`, `doc_base`.`desc`, `doc_base`.`proizv`, `doc_base`.`cost`, `doc_base`.`likvid`, `doc_img`.`id` AS `img_id`, `doc_img`.`type` AS `img_type`, `doc_base`.`pos_type`, `doc_base`.`hidden`, `doc_base`.`unit`, `doc_base`.`vc`, `doc_base`.`stock`, `doc_base`.`warranty`, `doc_base`.`warranty_type`, `doc_base`.`no_export_yml`, `doc_base`.`country`, `doc_base`.`title_tag`, `doc_base`.`meta_keywords`, `doc_base`.`meta_description`, `doc_base`.`cost_date` 253 $pres = $db->query("SELECT `doc_base`.`group`, `doc_base`.`name`, `doc_base`.`desc`, `doc_base`.`proizv`, `doc_base`.`cost`, `doc_base`.`likvid`, `doc_img`.`id` AS `img_id`, `doc_img`.`type` AS `img_type`, `doc_base`.`pos_type`, `doc_base`.`hidden`, `doc_base`.`unit`, `doc_base`.`vc`, `doc_base`.`stock`, `doc_base`.`warranty`, `doc_base`.`warranty_type`, `doc_base`.`no_export_yml`, `doc_base`.`country`, `doc_base`.`title_tag`, `doc_base`.`meta_keywords`, `doc_base`.`meta_description`, `doc_base`.`cost_date`, `doc_base`.`mult`, `doc_base`.`bulkcnt` 254 254 FROM `doc_base` 255 255 LEFT JOIN `doc_base_img` ON `doc_base_img`.`pos_id`=`doc_base`.`id` AND `doc_base_img`.`default`='1' … … 309 309 <div id='proizv_p' class='dd'></div></td> 310 310 <td align='right'>Код изготовителя</td><td><input type='text' name='pd[vc]' value='".html_out($pos_info['vc'])."'></td></tr> 311 <tr><td align='right'>Единица измерения</td><td colspan='3'><select name='pd[unit]'>");311 <tr><td align='right'>Единица измерения</td><td><select name='pd[unit]'>"); 312 312 313 313 $res2 = $db->query("SELECT `id`, `name` FROM `class_unit_group` ORDER BY `id`"); … … 326 326 } 327 327 } 328 $tmpl->addContent("</select></td></tr> 329 <tr><td align='right'>Страна происхождения<br><small>Для счёта-фактуры</small></td><td colspan='3'><select name='pd[country]'>"); 328 $tmpl->addContent("</select></td> 329 <td align='right'>Кратность:</td> 330 <td><input type='text' name='pd[mult]' value='".html_out($pos_info['mult'])."'></td> 331 </tr> 332 333 <tr><td align='right'>Страна происхождения<br><small>Для счёта-фактуры</small></td><td><select name='pd[country]'>"); 330 334 $tmpl->addContent("<option value='0'>--не выбрана--</option>"); 331 335 $res = $db->query("SELECT `id`, `name` FROM `class_country` ORDER BY `name`"); … … 334 338 $tmpl->addContent("<option value='$nx[0]' $selected>".html_out($nx[1])."</option>"); 335 339 } 336 $tmpl->addContent("</select></td></tr> 340 $tmpl->addContent("</select></td> 341 <td align='right'>Количество оптом:</td> 342 <td><input type='text' name='pd[bulkcnt]' value='".html_out($pos_info['bulkcnt'])."'></td> 343 </tr> 337 344 <tr><td align='right'>Ликвидность:</td><td colspan='3'><b>{$pos_info['likvid']}% <small>=Сумма(Кол-во заявок + Кол-во реализаций) / МаксСумма(Кол-во заявок + Кол-во реализаций)</small></b></td></tr> 338 345 <tr class='lin0'><td align='right'>Базовая цена</td><td><input type='text' name='pd[cost]' value='{$pos_info['cost']}'> с {$pos_info['cost_date']} </td> -
web/js/doc_journal.js
r2d52f43 re4e4809 51 51 s += "<li value='" + i + "'"; 52 52 s += ">" + data[i] + "</li>"; 53 old_seeked .push(data[i]);53 old_seeked[i] = data[i]; 54 54 } 55 55 old_value = ''; … … 61 61 s += "<li value='" + i + "'"; 62 62 s += ">" + old_seeked[i] + "</li>"; 63 cp .push(old_seeked[i]);63 cp[i] = old_seeked[i]; 64 64 } 65 65 old_seeked = cp; … … 72 72 s += "<li value='" + i + "'"; 73 73 s += ">" + data[i] + "</li>"; 74 old_seeked .push(data[i]);74 old_seeked[i] = data[i]; 75 75 } 76 76 old_value = substr;
Note: See TracChangeset
for help on using the changeset viewer.