| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | /** |
| | | * Listenbehandlung |
| | | * |
| | | * @package listform |
| | | * @author Till Brehm |
| | | * @version 1.1 |
| | | */ |
| | | |
| | | class listform { |
| | | |
| | | private $debug = 0; |
| | |
| | | private $pagingValues; |
| | | private $searchChanged = 0; |
| | | private $module; |
| | | private $dateformat = 'd.m.Y'; |
| | | private $dateformat = 'Y-m-d H:i'; |
| | | public $wordbook; |
| | | |
| | | public function loadListDef($file, $module = '') |
| | |
| | | $record = array(); |
| | | $values = $app->$datasource_class->$datasource_function($field, $record); |
| | | } else { |
| | | $this->errorMessage .= "Custom datasource class or function is empty<br>\r\n"; |
| | | $this->errorMessage .= "Custom datasource class or function is empty<br />\r\n"; |
| | | } |
| | | } |
| | | return $values; |
| | |
| | | |
| | | public function decode($record) |
| | | { |
| | | global $conf; |
| | | if(is_array($record)) { |
| | | foreach($this->listDef['item'] as $field){ |
| | | $key = $field['field']; |
| | |
| | | switch ($field['datatype']){ |
| | | case 'VARCHAR': |
| | | case 'TEXT': |
| | | $record[$key] = htmlentities(stripslashes($record[$key])); |
| | | $record[$key] = htmlentities(stripslashes($record[$key]),ENT_QUOTES,$conf["html_content_encoding"]); |
| | | break; |
| | | |
| | | case 'DATE': |
| | |
| | | break; |
| | | |
| | | case 'DOUBLE': |
| | | $record[$key] = htmlentities($record[$key]); |
| | | $record[$key] = htmlentities($record[$key],ENT_QUOTES,$conf["html_content_encoding"]); |
| | | break; |
| | | |
| | | case 'CURRENCY': |
| | |
| | | break; |
| | | |
| | | default: |
| | | $record[$key] = htmlentities(stripslashes($record[$key])); |
| | | $record[$key] = htmlentities(stripslashes($record[$key]),ENT_QUOTES,$conf["html_content_encoding"]); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | function escapeArrayValues($search_values) { |
| | | global $conf; |
| | | |
| | | $out = array(); |
| | | if(is_array($search_values)) { |
| | | foreach($search_values as $key => $val) { |
| | | $out[$key] = htmlentities($val,ENT_QUOTES); |
| | | $out[$key] = htmlentities($val,ENT_QUOTES,$conf["html_content_encoding"]); |
| | | } |
| | | } |
| | | |