A Qcodo based CMS/ecommerce framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
1002 B

13 years ago
  1. <?php
  2. class QFileAsset extends QFileAssetBase {
  3. protected $strTemporaryUploadPath = '/tmp';
  4. public function __construct($objParentObject, $strControlId = null) {
  5. parent::__construct($objParentObject, $strControlId);
  6. // Setup Default Properties
  7. $this->strTemplate = __DOCROOT__ . __PHP_ASSETS__ . '/_core/QFileAsset.tpl.php';
  8. $this->DialogBoxCssClass = 'fileassetDbox';
  9. $this->UploadText = QApplication::Translate('Upload');
  10. $this->CancelText = QApplication::Translate('Cancel');
  11. $this->btnUpload->Text = '<img src="' . __VIRTUAL_DIRECTORY__ . __IMAGE_ASSETS__ . '/add.png" alt="' . QApplication::Translate('Upload') . '" border="0"/> ' . QApplication::Translate('Upload');
  12. $this->btnDelete->Text = '<img src="' . __VIRTUAL_DIRECTORY__ . __IMAGE_ASSETS__ . '/delete.png" alt="' . QApplication::Translate('Delete') . '" border="0"/> ' . QApplication::Translate('Delete');
  13. $this->DialogBoxHtml = '<h1>Upload a File</h1><p>Please select a file to upload.</p>';
  14. }
  15. }
  16. ?>