Commit 3822896f authored by Shakarim Sapa's avatar Shakarim Sapa

- FIX

parent 3672c55a
...@@ -120,17 +120,17 @@ class Conditions { ...@@ -120,17 +120,17 @@ class Conditions {
*/ */
public function getControlArea($condition_array=array(), $key=null){ public function getControlArea($condition_array=array(), $key=null){
$html = '<div class="conditions-block">'; $html = '<div class="conditions-block">';
if (count($condition_array)>0) { // if (count($condition_array)>0) {
foreach($condition_array as $condition) { // foreach($condition_array as $condition) {
$html .= self::getConditionHtml($condition['id'], ($key!==null) ? $key : rand(100000,999999), (array_key_exists('params', $condition)) ? $condition['params'] : array()); // $html .= self::getConditionHtml($condition['id'], ($key!==null) ? $key : rand(100000,999999), (array_key_exists('params', $condition)) ? $condition['params'] : array());
} // }
} // }
$html .= '</div>'; $html .= '</div>';
$html .= '<div class="btn-group" role="group">'; $html .= '<div class="btn-group" role="group">';
$html .= '<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="glyphicon glyphicon-plus"></i></button>'; $html .= '<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="glyphicon glyphicon-plus"></i></button>';
$html .= '<ul class="dropdown-menu">'; $html .= '<ul class="dropdown-menu">';
// foreach(Conditions::init()->getConditions() as $id=>$condition) foreach(Conditions::init()->getConditions() as $id=>$condition)
// $html .= '<li><a href="#" data-id="'.$id.'" class="add_condition">'.$condition->getName().'</a></li>'; $html .= '<li><a href="#" data-id="'.$id.'" class="add_condition">'.$condition->getName().'</a></li>';
$html .= '</ul>'; $html .= '</ul>';
$html .= '</div>'; $html .= '</div>';
return $html; return $html;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment