@@ -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 | } |
@@ -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]> |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | $this->addPreloadFile('Contact.php'); |
| 22 | 22 | $this->addPreloadFile('ContactMessage.php'); // kan m�ske slettes |
| 23 | 23 | $this->addPreloadFile('ContactPerson.php'); |
| 24 | - $this->addPreloadFile('ContactReminder.php'); |
|
| 24 | + $this->addPreloadFile('ContactReminder.php'); |
|
| 25 | 25 | |
| 26 | 26 | $this->addRequiredShared('email'); |
| 27 | 27 | $this->addRequiredShared('keyword'); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | // settings |
| 42 | 42 | // paymentconditions in days |
| 43 | - $this->includeSettingFile('settings.php'); |
|
| 43 | + $this->includeSettingFile('settings.php'); |
|
| 44 | 44 | |
| 45 | 45 | $this->addSetting('paymentcondition', array(0, 8, 14, 30)); |
| 46 | 46 | $this->addSetting( |
@@ -51,29 +51,29 @@ discard block |
||
| 51 | 51 | ) |
| 52 | 52 | ); |
| 53 | 53 | |
| 54 | - $this->addSetting('contact_login_url', array( |
|
| 54 | + $this->addSetting('contact_login_url', array( |
|
| 55 | 55 | 0 => 'kundelogin.dk', |
| 56 | 56 | 1 => 'medlemslogin.dk' |
| 57 | - )); |
|
| 57 | + )); |
|
| 58 | 58 | |
| 59 | - $this->addSetting( |
|
| 60 | - 'preferred_invoice', |
|
| 61 | - array( |
|
| 59 | + $this->addSetting( |
|
| 60 | + 'preferred_invoice', |
|
| 61 | + array( |
|
| 62 | 62 | 1 => 'pdf', |
| 63 | 63 | 2 => 'email', |
| 64 | 64 | 3 => 'electronic' |
| 65 | - ) |
|
| 66 | - ); |
|
| 65 | + ) |
|
| 66 | + ); |
|
| 67 | 67 | |
| 68 | - $this->addSetting( |
|
| 69 | - 'reminder_status', |
|
| 70 | - array( |
|
| 68 | + $this->addSetting( |
|
| 69 | + 'reminder_status', |
|
| 70 | + array( |
|
| 71 | 71 | 0 => '_Invalid type_', |
| 72 | 72 | 1 => 'created', |
| 73 | 73 | 2 => 'seen', |
| 74 | 74 | 3 => 'cancelled' |
| 75 | - ) |
|
| 76 | - ); |
|
| 75 | + ) |
|
| 76 | + ); |
|
| 77 | 77 | |
| 78 | 78 | } |
| 79 | 79 | } |