This commit is contained in:
PhantomVl 2018-10-22 18:47:29 +03:00
parent 1db698f3e4
commit 4a89db8742

View file

@ -85,7 +85,7 @@ if (!empty($_REQUEST['new_id'])) {
$defaul_tv = (empty($db_buttons[$line_id])) ? "empty": $db_buttons[$line_id]['type']; $defaul_tv = (empty($db_buttons[$line_id])) ? "empty": $db_buttons[$line_id]['type'];
$defaul_btn = (empty($db_buttons[$line_id])) ? "": $db_buttons[$line_id]['name']; $defaul_btn = (empty($db_buttons[$line_id])) ? "": $db_buttons[$line_id]['name'];
$defaul_opt = (empty($db_buttons[$line_id])) ? array(''): explode(',',$db_buttons[$line_id]['options']); $defaul_opt = (empty($db_buttons[$line_id])) ? array(''): explode(',',$db_buttons[$line_id]['options']);
print_r($defaul_opt); // print_r($defaul_opt);
$show_form_mode = $defaul_tv; $show_form_mode = $defaul_tv;
@ -109,7 +109,7 @@ if (!empty($_REQUEST['new_id'])) {
if ($defaul_tv == "feature") { if ($defaul_tv == "feature") {
$defaul_ftr = $defaul_opt[0]; $defaul_ftr = $defaul_opt[0];
$defaul_fcod = (empty($defaul_opt[1])) ? '': $defaul_opt[1]; $defaul_fcod = (empty($defaul_opt[1])) ? '': $defaul_opt[1];
print_r($defaul_fcod); // print_r($defaul_fcod);
} }
foreach ($defaul_opt as $data_i) { foreach ($defaul_opt as $data_i) {
if (strpos($data_i,'@') >0) { if (strpos($data_i,'@') >0) {