mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
update orderinterpreter
This commit is contained in:
parent
1f97fcef40
commit
fbb1e53362
@ -88,8 +88,7 @@ class OrderInterpreter extends Wizard
|
|||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param boolean $must_run Must run or not.
|
* @param string $ajax_controller Controller.
|
||||||
* @param string $ajax_controller Controller.
|
|
||||||
*
|
*
|
||||||
* @return object
|
* @return object
|
||||||
* @throws Exception On error.
|
* @throws Exception On error.
|
||||||
@ -135,11 +134,22 @@ class OrderInterpreter extends Wizard
|
|||||||
if ($text !== '') {
|
if ($text !== '') {
|
||||||
echo '<div id="result_order" class="show_result_interpreter">';
|
echo '<div id="result_order" class="show_result_interpreter">';
|
||||||
echo '<ul>';
|
echo '<ul>';
|
||||||
foreach ($this->pages_name as $key => $value) {
|
|
||||||
if (preg_match('/.*'.$text.'.*/i', $value)) {
|
if (io_safe_output($text) === __('GO TO ')) {
|
||||||
echo '<li>';
|
foreach ($this->pages_name as $key => $value) {
|
||||||
echo '<img src="http://localhost/pandora_console/images/arrow_right_green.png">';
|
echo '<li>';
|
||||||
echo 'GO TO <a href="'.$this->pages_url[$key].'">'.$value.'</a><br>';
|
echo '<img src="http://localhost/pandora_console/images/arrow_right_green.png">';
|
||||||
|
echo '
|
||||||
|
<a href="'.$this->pages_url[$key].'">'.$value.'</a><br>';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
foreach ($this->pages_name as $key => $value) {
|
||||||
|
if (preg_match('/.*'.io_safe_output($text).'.*/i', __('GO TO '.$value))) {
|
||||||
|
echo '<li>';
|
||||||
|
echo '<img src="http://localhost/pandora_console/images/arrow_right_green.png">';
|
||||||
|
echo '
|
||||||
|
<a href="'.$this->pages_url[$key].'">'.$value.'</a><br>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user