@@ -235,7 +235,7 @@ |
||
| 235 | 235 | $this->error->set('Ikke en tilladt type'); |
| 236 | 236 | } |
| 237 | 237 | |
| 238 | - $validator->isNumeric($var['use_key'], 'Det kan en konto ikke bruges til'); |
|
| 238 | + $validator->isNumeric($var['use_key'], 'Det kan en konto ikke bruges til'); |
|
| 239 | 239 | |
| 240 | 240 | if (!array_key_exists($var['use_key'], $this->use)) { |
| 241 | 241 | $this->error->set('Ikke en tilladt brug af kontoen'); |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | - /** |
|
| 3 | - * Image handler. Klarer h�ndtering af billeder. |
|
| 4 | - * |
|
| 5 | - * @package Intraface |
|
| 6 | - * @author: Sune |
|
| 7 | - * @version: 1.0 |
|
| 8 | - * |
|
| 9 | - */ |
|
| 2 | + /** |
|
| 3 | + * Image handler. Klarer h�ndtering af billeder. |
|
| 4 | + * |
|
| 5 | + * @package Intraface |
|
| 6 | + * @author: Sune |
|
| 7 | + * @version: 1.0 |
|
| 8 | + * |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | class ImageHandler extends Intraface_Standard |
| 12 | 12 | { |
@@ -86,19 +86,19 @@ |
||
| 86 | 86 | |
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | - * Denne funktion skal printe et upload field. |
|
| 90 | - * |
|
| 91 | - * Det skal p� en eller anden m�de v�re muligt at s�tte f�lgende parameter: |
|
| 92 | - * @param checkbox_name: navnet p� den checkboks, som inds�ttes, n�r der er uploadet et billede |
|
| 93 | - * @param upload_field_name: navnet p� type="file" input-felttet. |
|
| 94 | - * @param submit_name: navnet p� submit-knappen, som f�rer til "V�lg fra filarkiv" |
|
| 95 | - * @param options: array: |
|
| 96 | - * image_attr (mulighed for at s�tte attributer p� img-tag); |
|
| 97 | - * field_description: (det som st�r foran upload feltet, standard 'Fil') |
|
| 98 | - * image_size: (st�rrelsen p� billedet. Standard original |
|
| 99 | - * type: full/only_upload |
|
| 100 | - * include_submit_button_name: hvis sat bliver der indsat en "Upload" knap efter fil-felt, men strengen som navn |
|
| 101 | - */ |
|
| 89 | + * Denne funktion skal printe et upload field. |
|
| 90 | + * |
|
| 91 | + * Det skal p� en eller anden m�de v�re muligt at s�tte f�lgende parameter: |
|
| 92 | + * @param checkbox_name: navnet p� den checkboks, som inds�ttes, n�r der er uploadet et billede |
|
| 93 | + * @param upload_field_name: navnet p� type="file" input-felttet. |
|
| 94 | + * @param submit_name: navnet p� submit-knappen, som f�rer til "V�lg fra filarkiv" |
|
| 95 | + * @param options: array: |
|
| 96 | + * image_attr (mulighed for at s�tte attributer p� img-tag); |
|
| 97 | + * field_description: (det som st�r foran upload feltet, standard 'Fil') |
|
| 98 | + * image_size: (st�rrelsen p� billedet. Standard original |
|
| 99 | + * type: full/only_upload |
|
| 100 | + * include_submit_button_name: hvis sat bliver der indsat en "Upload" knap efter fil-felt, men strengen som navn |
|
| 101 | + */ |
|
| 102 | 102 | |
| 103 | 103 | function printFormUploadTag($checkbox_name, $upload_field_name, $submit_name, $options = array()) |
| 104 | 104 | { |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | $product = new Product($this->procurement->kernel, $input["product_id"], $input['product_detail_id']); |
| 235 | 235 | |
| 236 | 236 | if (!is_object($product) || $product->get('id') == 0) { |
| 237 | - $this->error->set("Ugyldigt produkt"); |
|
| 237 | + $this->error->set("Ugyldigt produkt"); |
|
| 238 | 238 | } else { |
| 239 | 239 | $product_detail_id = $product->get("detail_id"); |
| 240 | 240 | } |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | $product = new Product($this->procurement->kernel, $product_id); |
| 348 | 348 | |
| 349 | 349 | if (!is_object($product) || $product->get('id') == 0) { |
| 350 | - throw new Excetion('Invalid product id'); |
|
| 350 | + throw new Excetion('Invalid product id'); |
|
| 351 | 351 | } else { |
| 352 | 352 | $product_detail_id = $product->get("detail_id"); |
| 353 | 353 | } |
@@ -153,15 +153,15 @@ |
||
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | $sql = "running_index = ".$this->db->quote($input['running_index'], 'integer').", " . |
| 156 | - "evaluate_target_key = ".$this->db->quote($input['evaluate_target_key'], 'integer').", " . |
|
| 157 | - "evaluate_method_key = ".$this->db->quote($input['evaluate_method_key'], 'integer').", " . |
|
| 158 | - "evaluate_value = ".$this->db->quote($input['evaluate_value'], 'text').", " . |
|
| 159 | - "evaluate_value_case_sensitive = ".$this->db->quote($input['evaluate_value_case_sensitive'], 'integer').", " . |
|
| 160 | - "go_to_index_after = ".$this->db->quote($input['go_to_index_after'], 'integer').", " . |
|
| 161 | - "action_action_key = ".$this->db->quote($input['action_action_key'], 'integer').", " . |
|
| 162 | - "action_value = ".$this->db->quote($input['action_value'], 'text').", " . |
|
| 163 | - "action_quantity = ".$this->db->quote($input['action_quantity'], 'integer').", " . |
|
| 164 | - "action_unit_key = ".$this->db->quote($input['action_unit_key'], 'integer'); |
|
| 156 | + "evaluate_target_key = ".$this->db->quote($input['evaluate_target_key'], 'integer').", " . |
|
| 157 | + "evaluate_method_key = ".$this->db->quote($input['evaluate_method_key'], 'integer').", " . |
|
| 158 | + "evaluate_value = ".$this->db->quote($input['evaluate_value'], 'text').", " . |
|
| 159 | + "evaluate_value_case_sensitive = ".$this->db->quote($input['evaluate_value_case_sensitive'], 'integer').", " . |
|
| 160 | + "go_to_index_after = ".$this->db->quote($input['go_to_index_after'], 'integer').", " . |
|
| 161 | + "action_action_key = ".$this->db->quote($input['action_action_key'], 'integer').", " . |
|
| 162 | + "action_value = ".$this->db->quote($input['action_value'], 'text').", " . |
|
| 163 | + "action_quantity = ".$this->db->quote($input['action_quantity'], 'integer').", " . |
|
| 164 | + "action_unit_key = ".$this->db->quote($input['action_unit_key'], 'integer'); |
|
| 165 | 165 | |
| 166 | 166 | if ($this->id != 0) { |
| 167 | 167 | $result = $this->db->exec("UPDATE webshop_basket_evaluation SET ".$sql." WHERE intranet_id = ".$this->kernel->intranet->get('id')." AND id = ".$this->id); |
@@ -192,10 +192,10 @@ |
||
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | /** |
| 195 | - * Returns the store identifier which is generated on store and restore. |
|
| 196 | - * |
|
| 197 | - * @return string action store identifier |
|
| 198 | - */ |
|
| 195 | + * Returns the store identifier which is generated on store and restore. |
|
| 196 | + * |
|
| 197 | + * @return string action store identifier |
|
| 198 | + */ |
|
| 199 | 199 | public function getIdentifier() |
| 200 | 200 | { |
| 201 | 201 | return $this->identifier; |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * @param int id on a ModulePackage |
| 38 | 38 | * |
| 39 | 39 | * @return void |
| 40 | - */ |
|
| 40 | + */ |
|
| 41 | 41 | public function __construct($id = 0) |
| 42 | 42 | { |
| 43 | 43 | $this->db = MDB2::singleton(DB_DSN); |
@@ -204,18 +204,18 @@ discard block |
||
| 204 | 204 | $i = 0; |
| 205 | 205 | $db = $this->dbquery->getRecordset('module_package.id, module_package_plan.plan, module_package_plan.id AS plan_id, module_package.product_id, module_package_group.group_name, module_package_group.id AS group_id'); |
| 206 | 206 | while ($db->nextRecord()) { |
| 207 | - $list[$i]['id'] = $db->f('id'); |
|
| 208 | - $list[$i]['plan'] = $db->f('plan'); |
|
| 209 | - $list[$i]['plan_id'] = $db->f('plan_id'); |
|
| 210 | - $list[$i]['group'] = $db->f('group_name'); |
|
| 211 | - $list[$i]['group_id'] = $db->f('group_id'); |
|
| 212 | - $list[$i]['product_id'] = $db->f('product_id'); |
|
| 207 | + $list[$i]['id'] = $db->f('id'); |
|
| 208 | + $list[$i]['plan'] = $db->f('plan'); |
|
| 209 | + $list[$i]['plan_id'] = $db->f('plan_id'); |
|
| 210 | + $list[$i]['group'] = $db->f('group_name'); |
|
| 211 | + $list[$i]['group_id'] = $db->f('group_id'); |
|
| 212 | + $list[$i]['product_id'] = $db->f('product_id'); |
|
| 213 | 213 | if ($db->f('product_id') != 0) { |
| 214 | 214 | $product_ids[] = $db->f('product_id'); |
| 215 | 215 | } |
| 216 | - $list[$i]['modules'] = $this->getModules($db->f('id')); |
|
| 217 | - $list[$i]['product'] = array(); |
|
| 218 | - $i++; |
|
| 216 | + $list[$i]['modules'] = $this->getModules($db->f('id')); |
|
| 217 | + $list[$i]['product'] = array(); |
|
| 218 | + $i++; |
|
| 219 | 219 | } |
| 220 | 220 | |
| 221 | 221 | // get all products in one request and add them to the array |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | throw new Exception('Could not save information in ContactReminder->update' . $result->getUserInfo()); |
| 226 | 226 | return false; |
| 227 | 227 | } |
| 228 | - return $this->id; |
|
| 228 | + return $this->id; |
|
| 229 | 229 | } |
| 230 | 230 | |
| 231 | 231 | /** |
@@ -245,8 +245,8 @@ discard block |
||
| 245 | 245 | throw new Exception('Could not postphone reminder' . $result->getUserInfo()); |
| 246 | 246 | return false; |
| 247 | 247 | } |
| 248 | - $this->load(); |
|
| 249 | - return true; |
|
| 248 | + $this->load(); |
|
| 249 | + return true; |
|
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | /** |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | if ($result->numRows() == 0) { |
| 279 | 279 | return array(); |
| 280 | 280 | } |
| 281 | - return $result->fetchAll(MDB2_FETCHMODE_ASSOC); |
|
| 281 | + return $result->fetchAll(MDB2_FETCHMODE_ASSOC); |
|
| 282 | 282 | |
| 283 | 283 | } |
| 284 | 284 | |
@@ -297,8 +297,8 @@ discard block |
||
| 297 | 297 | throw new Exception('Could not postphone reminder' . $result->getUserInfo()); |
| 298 | 298 | return false; |
| 299 | 299 | } |
| 300 | - $this->load(); |
|
| 301 | - return true; |
|
| 300 | + $this->load(); |
|
| 301 | + return true; |
|
| 302 | 302 | |
| 303 | 303 | } |
| 304 | 304 | |
@@ -105,9 +105,6 @@ |
||
| 105 | 105 | |
| 106 | 106 | function getContacts() |
| 107 | 107 | } |
| 108 | - |
|
| 109 | - |
|
| 110 | - |
|
| 111 | 108 | * |
| 112 | 109 | * @package Intraface_Contact |
| 113 | 110 | * @author Lars Olesen <[email protected]> |