diff --git a/doc/README.Notification b/doc/README.Notification index 8ec3dffd5..c00664cee 100644 --- a/doc/README.Notification +++ b/doc/README.Notification @@ -108,7 +108,6 @@ op/op.TriggerWorkflow.php * Workflow transition was triggered subscribers of the document -op/op.UpdateDocument2.php op/op.UpdateDocument.php * document was updated subscribers of the document diff --git a/languages/ar_EG/lang.inc b/languages/ar_EG/lang.inc index d4ee4579d..df70ad26b 100644 --- a/languages/ar_EG/lang.inc +++ b/languages/ar_EG/lang.inc @@ -541,8 +541,13 @@ URL: [url]', 'include_content' => '', 'include_documents' => 'اشمل مستندات', 'include_subdirectories' => 'اشمل مجلدات فرعية', +'indexing_tasks_in_queue' => '', 'index_converters' => 'فهرس تحويل المستند', +'index_done' => '', +'index_error' => '', 'index_folder' => 'ﻒﻫﺮﺳﺓ ﺎﻠﻤﺠﻟﺩ', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'افراد', 'indivіduals_in_groups' => '', 'inherited' => 'موروث', @@ -761,6 +766,7 @@ URL: [url]', 'only_jpg_user_images' => 'فقط يمكنك استخدام ملفات من تنسيق jpg كصورة المستخدم', 'order_by_sequence_off' => '', 'original_filename' => 'اسم الملف الاصلي', +'overall_indexing_progress' => '', 'owner' => 'المالك', 'ownership_changed_email' => 'تم تغيير المالك', 'ownership_changed_email_body' => 'تم تغيير المالك @@ -1321,9 +1327,11 @@ URL: [url]', 'splash_document_added' => '', 'splash_document_checkedout' => '', 'splash_document_edited' => '', +'splash_document_indexed' => '', 'splash_document_locked' => 'تم قفل المستند', 'splash_document_unlocked' => 'تم الغاء قفل المستند', 'splash_edit_attribute' => '', +'splash_edit_event' => '', 'splash_edit_group' => '', 'splash_edit_role' => '', 'splash_edit_user' => '', diff --git a/languages/bg_BG/lang.inc b/languages/bg_BG/lang.inc index 4045bf47b..6e79e657c 100644 --- a/languages/bg_BG/lang.inc +++ b/languages/bg_BG/lang.inc @@ -472,8 +472,13 @@ $text = array( 'include_content' => '', 'include_documents' => 'Включи документи', 'include_subdirectories' => 'Включи под-папки', +'indexing_tasks_in_queue' => '', 'index_converters' => 'Index document conversion', +'index_done' => '', +'index_error' => '', 'index_folder' => '', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Личности', 'indivіduals_in_groups' => '', 'inherited' => 'наследен', @@ -668,6 +673,7 @@ $text = array( 'only_jpg_user_images' => 'Разрешени са само .jpg-изображения', 'order_by_sequence_off' => '', 'original_filename' => 'Оригинално име на файл', +'overall_indexing_progress' => '', 'owner' => 'Собственик', 'ownership_changed_email' => 'Собственикът променен', 'ownership_changed_email_body' => '', @@ -1186,9 +1192,11 @@ $text = array( 'splash_document_added' => '', 'splash_document_checkedout' => '', 'splash_document_edited' => '', +'splash_document_indexed' => '', 'splash_document_locked' => '', 'splash_document_unlocked' => '', 'splash_edit_attribute' => '', +'splash_edit_event' => '', 'splash_edit_group' => '', 'splash_edit_role' => '', 'splash_edit_user' => '', diff --git a/languages/ca_ES/lang.inc b/languages/ca_ES/lang.inc index 04d9822e4..08d0e6f23 100644 --- a/languages/ca_ES/lang.inc +++ b/languages/ca_ES/lang.inc @@ -477,8 +477,13 @@ URL: [url]', 'include_content' => '', 'include_documents' => 'Incloure documents', 'include_subdirectories' => 'Incloure subdirectoris', +'indexing_tasks_in_queue' => '', 'index_converters' => '', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Carpeta d\'índex', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Individuals', 'indivіduals_in_groups' => '', 'inherited' => '', @@ -673,6 +678,7 @@ URL: [url]', 'only_jpg_user_images' => 'Només pot utilitzar imatges .jpg com imatges d\'usuari', 'order_by_sequence_off' => '', 'original_filename' => '', +'overall_indexing_progress' => '', 'owner' => 'Propietari/a', 'ownership_changed_email' => 'Propietari/a canviat', 'ownership_changed_email_body' => '', @@ -1191,9 +1197,11 @@ URL: [url]', 'splash_document_added' => '', 'splash_document_checkedout' => '', 'splash_document_edited' => '', +'splash_document_indexed' => '', 'splash_document_locked' => 'Document blocat', 'splash_document_unlocked' => 'Document desblocat', 'splash_edit_attribute' => '', +'splash_edit_event' => '', 'splash_edit_group' => '', 'splash_edit_role' => '', 'splash_edit_user' => '', diff --git a/languages/cs_CZ/lang.inc b/languages/cs_CZ/lang.inc index ec78583d4..329eaa525 100644 --- a/languages/cs_CZ/lang.inc +++ b/languages/cs_CZ/lang.inc @@ -548,8 +548,13 @@ URL: [url]', 'include_content' => '', 'include_documents' => 'Včetně dokumentů', 'include_subdirectories' => 'Včetně podadresářů', +'indexing_tasks_in_queue' => '', 'index_converters' => 'Index konverze dokumentu', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Složka indexu', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Jednotlivci', 'indivіduals_in_groups' => '', 'inherited' => 'Zděděno', @@ -768,6 +773,7 @@ URL: [url]', 'only_jpg_user_images' => 'Pro obrázky uživatelů je možné použít pouze obrázky .jpg', 'order_by_sequence_off' => '', 'original_filename' => 'Originální název souboru', +'overall_indexing_progress' => '', 'owner' => 'Vlastník', 'ownership_changed_email' => 'Vlastník změněn', 'ownership_changed_email_body' => 'Vlastník změněn @@ -1330,9 +1336,11 @@ URL: [url]', 'splash_document_added' => 'Dokument přidán', 'splash_document_checkedout' => '', 'splash_document_edited' => 'Dokument uložen', +'splash_document_indexed' => '', 'splash_document_locked' => 'Dokument zamčen', 'splash_document_unlocked' => 'Dokument odemčen', 'splash_edit_attribute' => 'Atribut uložen', +'splash_edit_event' => '', 'splash_edit_group' => 'Skupina uložena', 'splash_edit_role' => '', 'splash_edit_user' => 'Uživatel uložen', diff --git a/languages/de_DE/lang.inc b/languages/de_DE/lang.inc index f007d326b..2c006d12c 100644 --- a/languages/de_DE/lang.inc +++ b/languages/de_DE/lang.inc @@ -19,7 +19,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // -// Translators: Admin (2368), dgrutsch (22) +// Translators: Admin (2376), dgrutsch (22) $text = array( '2_factor_auth' => '2-Faktor Authentifizierung', @@ -553,8 +553,13 @@ URL: [url]', 'include_content' => 'Inhalte mit exportieren', 'include_documents' => 'Dokumente miteinbeziehen', 'include_subdirectories' => 'Unterverzeichnisse miteinbeziehen', +'indexing_tasks_in_queue' => 'Indiziervorgänge in der Warteschleife', 'index_converters' => 'Index Dokumentenumwandlung', +'index_done' => 'Fertig', +'index_error' => 'Fehler', 'index_folder' => 'Indiziere Ordner', +'index_pending' => 'Vorgemerkt', +'index_waiting' => 'Warte', 'individuals' => 'Einzelpersonen', 'indivіduals_in_groups' => 'Mitglieder einer Gruppe', 'inherited' => 'geerbt', @@ -772,6 +777,7 @@ URL: [url]', 'only_jpg_user_images' => 'Es sind nur JPG-Bilder erlaubt', 'order_by_sequence_off' => 'Die Sortierung nach Folge ist in den Einstellungen ausgeschaltet. Wenn dieser Parameter wirksam sein soll, muss sie wieder eingeschaltet werden.', 'original_filename' => 'Original filename', +'overall_indexing_progress' => 'Gesamtfortschritt bei der Indizierung', 'owner' => 'Besitzer', 'ownership_changed_email' => 'Besitzer geändert', 'ownership_changed_email_body' => 'Besitzer geändert @@ -1380,9 +1386,11 @@ URL: [url]', 'splash_document_added' => 'Dokument hinzugefügt', 'splash_document_checkedout' => 'Dokument ausgecheckt', 'splash_document_edited' => 'Dokument gespeichert', +'splash_document_indexed' => 'Dokument \'[name]\' indiziert.', 'splash_document_locked' => 'Dokument gesperrt', 'splash_document_unlocked' => 'Dokumentensperre aufgehoben', 'splash_edit_attribute' => 'Attribut gespeichert', +'splash_edit_event' => 'Ereignis gespeichert', 'splash_edit_group' => 'Gruppe gespeichert', 'splash_edit_role' => 'Rolle gespeichert', 'splash_edit_user' => 'Benutzer gespeichert', diff --git a/languages/el_GR/lang.inc b/languages/el_GR/lang.inc index ffb72e4f4..5da788a28 100644 --- a/languages/el_GR/lang.inc +++ b/languages/el_GR/lang.inc @@ -472,8 +472,13 @@ $text = array( 'include_content' => '', 'include_documents' => '', 'include_subdirectories' => '', +'indexing_tasks_in_queue' => '', 'index_converters' => '', +'index_done' => '', +'index_error' => '', 'index_folder' => '', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Άτομα', 'indivіduals_in_groups' => '', 'inherited' => '', @@ -679,6 +684,7 @@ URL: [url]', 'only_jpg_user_images' => '', 'order_by_sequence_off' => '', 'original_filename' => '', +'overall_indexing_progress' => '', 'owner' => 'Ιδιοκτήτης', 'ownership_changed_email' => '', 'ownership_changed_email_body' => '', @@ -1197,9 +1203,11 @@ URL: [url]', 'splash_document_added' => '', 'splash_document_checkedout' => '', 'splash_document_edited' => '', +'splash_document_indexed' => '', 'splash_document_locked' => '', 'splash_document_unlocked' => '', 'splash_edit_attribute' => '', +'splash_edit_event' => '', 'splash_edit_group' => '', 'splash_edit_role' => '', 'splash_edit_user' => '', diff --git a/languages/en_GB/lang.inc b/languages/en_GB/lang.inc index 526dade41..7fc2b4dc0 100644 --- a/languages/en_GB/lang.inc +++ b/languages/en_GB/lang.inc @@ -19,7 +19,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // -// Translators: Admin (1495), dgrutsch (9), netixw (14) +// Translators: Admin (1503), dgrutsch (9), netixw (14) $text = array( '2_factor_auth' => '2-factor authentication', @@ -553,8 +553,13 @@ URL: [url]', 'include_content' => 'Include content', 'include_documents' => 'Include documents', 'include_subdirectories' => 'Include subdirectories', +'indexing_tasks_in_queue' => 'Indexing tasks in queue', 'index_converters' => 'Index document conversion', +'index_done' => 'Done', +'index_error' => 'Error', 'index_folder' => 'Index folder', +'index_pending' => 'Pending', +'index_waiting' => 'Waiting', 'individuals' => 'Individuals', 'indivіduals_in_groups' => 'Members of a group', 'inherited' => 'inherited', @@ -773,6 +778,7 @@ URL: [url]', 'only_jpg_user_images' => 'Only .jpg-images may be used as user-images', 'order_by_sequence_off' => 'Ordering by sequence is turned off in the settings. If you want this parameter to have effect, you will have to turn it back on.', 'original_filename' => 'Original filename', +'overall_indexing_progress' => 'Overall indexing progress', 'owner' => 'Owner', 'ownership_changed_email' => 'Owner changed', 'ownership_changed_email_body' => 'Owner changed @@ -1374,9 +1380,11 @@ URL: [url]', 'splash_document_added' => 'Document added', 'splash_document_checkedout' => 'Document checked out', 'splash_document_edited' => 'Document saved', +'splash_document_indexed' => 'Document \'[name]\' indexed.', 'splash_document_locked' => 'Document locked', 'splash_document_unlocked' => 'Document unlocked', 'splash_edit_attribute' => 'Attribute saved', +'splash_edit_event' => 'Event saved', 'splash_edit_group' => 'Group saved', 'splash_edit_role' => 'Role saved', 'splash_edit_user' => 'User saved', diff --git a/languages/es_ES/lang.inc b/languages/es_ES/lang.inc index 0b3d6ec47..0e3979f2d 100644 --- a/languages/es_ES/lang.inc +++ b/languages/es_ES/lang.inc @@ -19,7 +19,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // -// Translators: acabello (20), Admin (1008), angel (123), francisco (2), jaimem (14) +// Translators: acabello (20), Admin (1009), angel (123), francisco (2), jaimem (14) $text = array( '2_factor_auth' => '', @@ -548,8 +548,13 @@ URL: [url]', 'include_content' => '', 'include_documents' => 'Incluir documentos', 'include_subdirectories' => 'Incluir subcarpetas', +'indexing_tasks_in_queue' => '', 'index_converters' => 'Conversión de índice de documentos', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Índice de carpetas', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Individuales', 'indivіduals_in_groups' => '', 'inherited' => 'heredado', @@ -625,7 +630,7 @@ URL: [url]', 'linked_to_this_version' => '', 'link_alt_updatedocument' => 'Si desea subir archivos mayores que el tamaño máximo actualmente permitido, por favor, utilice la página de subida alternativa.', 'link_to_version' => '', -'list_access_rights' => '', +'list_access_rights' => 'Listar los derechos de acceso', 'list_contains_no_access_docs' => '', 'list_hooks' => '', 'local_file' => 'Fichero local', @@ -768,6 +773,7 @@ URL: [url]', 'only_jpg_user_images' => 'Sólo puede usar imágenes .jpg como imágenes de usuario', 'order_by_sequence_off' => 'El orden secuencial está desactivado en la configuración. Si quiere utilizar este parámetro, deberá activarlo.', 'original_filename' => 'Nombre de fichero original', +'overall_indexing_progress' => '', 'owner' => 'Propietario', 'ownership_changed_email' => 'Propietario modificado', 'ownership_changed_email_body' => 'Propietario modificado @@ -1336,9 +1342,11 @@ URL: [url]', 'splash_document_added' => 'Documento añadido', 'splash_document_checkedout' => '', 'splash_document_edited' => 'Documento guardado', +'splash_document_indexed' => '', 'splash_document_locked' => 'Documento bloqueado', 'splash_document_unlocked' => 'Documento desbloqueado', 'splash_edit_attribute' => 'Atributo guardado', +'splash_edit_event' => '', 'splash_edit_group' => 'Grupo guardado', 'splash_edit_role' => '', 'splash_edit_user' => 'Usuario guardado', diff --git a/languages/fr_FR/lang.inc b/languages/fr_FR/lang.inc index fec98cf92..8bd861f9a 100644 --- a/languages/fr_FR/lang.inc +++ b/languages/fr_FR/lang.inc @@ -19,7 +19,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // -// Translators: Admin (1058), jeromerobert (50), lonnnew (9), Oudiceval (182) +// Translators: Admin (1060), jeromerobert (50), lonnnew (9), Oudiceval (182) $text = array( '2_factor_auth' => 'Authentification forte', @@ -553,8 +553,13 @@ URL: [url]', 'include_content' => '', 'include_documents' => 'Inclure les documents', 'include_subdirectories' => 'Inclure les sous-dossiers', +'indexing_tasks_in_queue' => '', 'index_converters' => 'Conversion de document Index', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Dossier Index', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Individuels', 'indivіduals_in_groups' => '', 'inherited' => 'hérité', @@ -773,6 +778,7 @@ URL: [url]', 'only_jpg_user_images' => 'Images d\'utilisateur au format .jpg seulement', 'order_by_sequence_off' => 'Le tri par séquence est désactivé dans les préférences. Si vous souhaitez que ce paramètre prenne effet, vous devez l\'activer.', 'original_filename' => 'Nom de fichier original', +'overall_indexing_progress' => '', 'owner' => 'Propriétaire', 'ownership_changed_email' => 'Propriétaire modifié', 'ownership_changed_email_body' => 'Propriétaire modifié @@ -1126,8 +1132,8 @@ URL: [url]', 'settings_enableThemeSelector_desc' => 'Activer/désactiver le sélecteur de thème sur la page de connexion.', 'settings_enableUpdateReceipt' => '', 'settings_enableUpdateReceipt_desc' => '', -'settings_enableUpdateRevApp' => '', -'settings_enableUpdateRevApp_desc' => '', +'settings_enableUpdateRevApp' => 'Autorise la modification de révisions et approbations existantes', +'settings_enableUpdateRevApp_desc' => 'A activer si l\'utilisateur qui a fait la révision/approbations peut changer sa position alors que l\'étape actuelle du processus n\'est pas terminée', 'settings_enableUserImage' => 'Activer image utilisateurs', 'settings_enableUserImage_desc' => 'Activer les images utilisateurs', 'settings_enableUsersView' => 'Activer Vue des Utilisateurs', @@ -1324,9 +1330,11 @@ URL: [url]', 'splash_document_added' => 'Document ajouté', 'splash_document_checkedout' => 'Document bloqué', 'splash_document_edited' => 'Document sauvegardé', +'splash_document_indexed' => '', 'splash_document_locked' => 'Document vérouillé', 'splash_document_unlocked' => 'Document déverrouillé', 'splash_edit_attribute' => 'Attribut modifié', +'splash_edit_event' => '', 'splash_edit_group' => 'Groupe sauvé', 'splash_edit_role' => '', 'splash_edit_user' => 'Utilisateur modifié', diff --git a/languages/hr_HR/lang.inc b/languages/hr_HR/lang.inc index b21d555f2..00f0a0250 100644 --- a/languages/hr_HR/lang.inc +++ b/languages/hr_HR/lang.inc @@ -553,8 +553,13 @@ Internet poveznica: [url]', 'include_content' => 'Uključi sadržaj', 'include_documents' => 'Sadrži dokumente', 'include_subdirectories' => 'Sadrži podmape', +'indexing_tasks_in_queue' => '', 'index_converters' => 'Pretvorba indeksa dokumenta', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Mapa indeksa', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Pojedinci', 'indivіduals_in_groups' => '', 'inherited' => 'naslijeđeno', @@ -772,6 +777,7 @@ Internet poveznica: [url]', 'only_jpg_user_images' => 'Kao korisničke slike mogu se koristiti samo .jpg slike', 'order_by_sequence_off' => 'Sortiranje po sekvencei ne isključeno u postavkama. Ako želite da ovaj parametar ima utjecaja, morat ćete ga ponovno uključiti.', 'original_filename' => 'Izvorni naziv datoteke', +'overall_indexing_progress' => '', 'owner' => 'Vlasnik', 'ownership_changed_email' => 'Promijenjen vlasnik', 'ownership_changed_email_body' => 'Promijenjen vlasnik @@ -1357,9 +1363,11 @@ Internet poveznica: [url]', 'splash_document_added' => 'Dokument dodan', 'splash_document_checkedout' => 'Dokument odjavljen', 'splash_document_edited' => 'Dokument pohranjen', +'splash_document_indexed' => '', 'splash_document_locked' => 'Dokument zaključan', 'splash_document_unlocked' => 'Dokument otključan', 'splash_edit_attribute' => 'Atribut pohranjen', +'splash_edit_event' => '', 'splash_edit_group' => 'Groupa pohranjena', 'splash_edit_role' => '', 'splash_edit_user' => 'Korisnik pohranjen', diff --git a/languages/hu_HU/lang.inc b/languages/hu_HU/lang.inc index 25d08e9d9..7225b6564 100644 --- a/languages/hu_HU/lang.inc +++ b/languages/hu_HU/lang.inc @@ -548,8 +548,13 @@ URL: [url]', 'include_content' => '', 'include_documents' => 'Tartalmazó dokumentumok', 'include_subdirectories' => 'Tartalmazó alkönyvtárak', +'indexing_tasks_in_queue' => '', 'index_converters' => 'Index dokumentum konverzió', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Mappa indexelése', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Egyedek', 'indivіduals_in_groups' => '', 'inherited' => 'örökölt', @@ -768,6 +773,7 @@ URL: [url]', 'only_jpg_user_images' => 'Felhasználói képként csak .jpg állományok adhatók meg', 'order_by_sequence_off' => '', 'original_filename' => 'Eredeti fájlnév', +'overall_indexing_progress' => '', 'owner' => 'Tulajdonos', 'ownership_changed_email' => 'Tulajdonos megváltozott', 'ownership_changed_email_body' => 'Tulajdonos megváltozott @@ -1335,9 +1341,11 @@ URL: [url]', 'splash_document_added' => '', 'splash_document_checkedout' => '', 'splash_document_edited' => 'Dokumentum elmentve', +'splash_document_indexed' => '', 'splash_document_locked' => 'Dokumentum zárolva', 'splash_document_unlocked' => 'Dokumentum zárolás feloldva', 'splash_edit_attribute' => 'Jellemző mentve', +'splash_edit_event' => '', 'splash_edit_group' => 'Csoport mentve', 'splash_edit_role' => '', 'splash_edit_user' => 'Felhasználó mentve', diff --git a/languages/it_IT/lang.inc b/languages/it_IT/lang.inc index 9cda67480..59d918fba 100644 --- a/languages/it_IT/lang.inc +++ b/languages/it_IT/lang.inc @@ -19,7 +19,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // -// Translators: Admin (1537), rickr (144), s.pnt (26) +// Translators: Admin (1538), rickr (144), s.pnt (26) $text = array( '2_factor_auth' => 'Autorizzazione a due fattori', @@ -554,8 +554,13 @@ URL: [url]', 'include_content' => 'Includi contenuto', 'include_documents' => 'Includi documenti', 'include_subdirectories' => 'Includi sottocartelle', +'indexing_tasks_in_queue' => '', 'index_converters' => 'Indice di conversione documenti', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Indicizza cartella', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Singoli', 'indivіduals_in_groups' => 'I membri de la gruppo', 'inherited' => 'ereditato', @@ -774,6 +779,7 @@ URL: [url]', 'only_jpg_user_images' => 'Possono essere utilizzate solo immagini di tipo jpeg', 'order_by_sequence_off' => 'Ordina in sequenza disabilitato', 'original_filename' => 'Nome file originale', +'overall_indexing_progress' => '', 'owner' => 'Proprietario', 'ownership_changed_email' => 'Proprietario cambiato', 'ownership_changed_email_body' => 'Cambio di proprietario @@ -1056,7 +1062,7 @@ URL: [url]', 'settings_Authentication' => 'Impostazioni di Autenticazione', 'settings_autoLoginUser' => 'Login automatico', 'settings_autoLoginUser_desc' => 'Utilizzare questo ID utente per l\'accesso se l\'utente non è già connesso. Questo tipo di accesso non creerà una sessione.', -'settings_available_languages' => '', +'settings_available_languages' => 'Lingue disponibili', 'settings_available_languages_desc' => '', 'settings_backupDir' => 'Directory di backup', 'settings_backupDir_desc' => 'Directory in cui lo strumento di backup salva i backup. Se questa directory non è impostato o non è possibile accedervi, quindi i backup vengono salvati nella directory dei contenuti.', @@ -1369,9 +1375,11 @@ URL: [url]', 'splash_document_added' => 'Documento aggiunto', 'splash_document_checkedout' => 'Documento approvato', 'splash_document_edited' => 'Documento modificato', +'splash_document_indexed' => '', 'splash_document_locked' => 'Documento bloccato', 'splash_document_unlocked' => 'Documento sbloccato', 'splash_edit_attribute' => 'Attributo modificato', +'splash_edit_event' => '', 'splash_edit_group' => 'Gruppo modificato', 'splash_edit_role' => 'Ruolo memorizzata', 'splash_edit_user' => 'Utente modificato', diff --git a/languages/ko_KR/lang.inc b/languages/ko_KR/lang.inc index 558faddcf..4a6b5c914 100644 --- a/languages/ko_KR/lang.inc +++ b/languages/ko_KR/lang.inc @@ -553,8 +553,13 @@ URL: [url]', 'include_content' => '내용을 포함', 'include_documents' => '문서 포함', 'include_subdirectories' => '서브 디렉토리를 포함', +'indexing_tasks_in_queue' => '', 'index_converters' => '인덱스 문서 변환', +'index_done' => '', +'index_error' => '', 'index_folder' => '인덱스 폴더', +'index_pending' => '', +'index_waiting' => '', 'individuals' => '개인', 'indivіduals_in_groups' => '개별 그룹', 'inherited' => '상속', @@ -773,6 +778,7 @@ URL : [url]', 'only_jpg_user_images' => '.JPG - 이미지만 사용자가 이미지로 사용할 수 있습니다', 'order_by_sequence_off' => '순서에 의한 정렬 설정이 켜져 있습니다. 이 매개 변수를 사용하고 싶은 경우 이것을 활성화 해야 합니다.', 'original_filename' => '원래본 파일명', +'overall_indexing_progress' => '', 'owner' => '소유자', 'ownership_changed_email' => '소유자 변경', 'ownership_changed_email_body' => '소유자 변경 @@ -1350,9 +1356,11 @@ URL : [url]', 'splash_document_added' => '문서를 추가', 'splash_document_checkedout' => '문서 체크아웃', 'splash_document_edited' => '문서 저장', +'splash_document_indexed' => '', 'splash_document_locked' => '문서 잠금', 'splash_document_unlocked' => '문서 잠금 해제', 'splash_edit_attribute' => '속성 저장', +'splash_edit_event' => '', 'splash_edit_group' => '그룹 저장', 'splash_edit_role' => '', 'splash_edit_user' => '사용자 저장', diff --git a/languages/nl_NL/lang.inc b/languages/nl_NL/lang.inc index 33b51b1d5..494e9ec49 100644 --- a/languages/nl_NL/lang.inc +++ b/languages/nl_NL/lang.inc @@ -546,8 +546,13 @@ URL: [url]', 'include_content' => 'inclusief inhoud', 'include_documents' => 'Inclusief documenten', 'include_subdirectories' => 'Inclusief submappen', +'indexing_tasks_in_queue' => '', 'index_converters' => 'Index document conversie', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Inhoud', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Individuen', 'indivіduals_in_groups' => 'Individuen in groepen', 'inherited' => 'overgeerfd', @@ -765,6 +770,7 @@ URL: [url]', 'only_jpg_user_images' => 'U mag alleen .jpg afbeeldingen gebruiken als gebruikersafbeeldingen.', 'order_by_sequence_off' => 'Volgorde uit', 'original_filename' => 'Originele bestandsnaam', +'overall_indexing_progress' => '', 'owner' => 'Eigenaar', 'ownership_changed_email' => 'Eigenaar gewijzigd', 'ownership_changed_email_body' => 'Eigenaar gewijzigd @@ -1363,9 +1369,11 @@ URL: [url]', 'splash_document_added' => 'Nieuw document toegevoegd', 'splash_document_checkedout' => 'Document in gebruik genomen', 'splash_document_edited' => 'Document opgeslagen', +'splash_document_indexed' => '', 'splash_document_locked' => 'Document vergrendeld', 'splash_document_unlocked' => 'Document ontgrendeld', 'splash_edit_attribute' => 'Attribuut opgeslagen', +'splash_edit_event' => '', 'splash_edit_group' => 'Groep opgeslagen', 'splash_edit_role' => 'Rol opgeslagen', 'splash_edit_user' => 'Gebruiker opgeslagen', diff --git a/languages/pl_PL/lang.inc b/languages/pl_PL/lang.inc index 5f4bdaf83..29ebaf51f 100644 --- a/languages/pl_PL/lang.inc +++ b/languages/pl_PL/lang.inc @@ -19,7 +19,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // -// Translators: Admin (748), netixw (84), romi (93), uGn (112) +// Translators: Admin (752), netixw (84), romi (93), uGn (112) $text = array( '2_factor_auth' => '', @@ -541,8 +541,13 @@ URL: [url]', 'include_content' => '', 'include_documents' => 'Uwzględnij dokumenty', 'include_subdirectories' => 'Uwzględnij podkatalogi', +'indexing_tasks_in_queue' => '', 'index_converters' => 'Konwersja indeksu dokumentów', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Indeksuj folder', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Indywidualni', 'indivіduals_in_groups' => '', 'inherited' => 'dziedziczony', @@ -761,6 +766,7 @@ URL: [url]', 'only_jpg_user_images' => 'Wyłącznie pliki typu .jpg mogą być użyte jako obrazy użytkowników', 'order_by_sequence_off' => '', 'original_filename' => 'Oryginalna nazwa pliku', +'overall_indexing_progress' => '', 'owner' => 'Właściciel', 'ownership_changed_email' => 'Właściciel zmieniony', 'ownership_changed_email_body' => 'Zmiana właściciela @@ -1002,7 +1008,7 @@ URL: [url]', 'settings_Authentication' => 'Ustawienia uwierzytelniania', 'settings_autoLoginUser' => '', 'settings_autoLoginUser_desc' => '', -'settings_available_languages' => '', +'settings_available_languages' => 'Dostępne języki', 'settings_available_languages_desc' => '', 'settings_backupDir' => '', 'settings_backupDir_desc' => '', @@ -1212,9 +1218,9 @@ URL: [url]', 'settings_php_version' => 'Wersja PHP', 'settings_presetExpirationDate' => '', 'settings_presetExpirationDate_desc' => '', -'settings_previewWidthDetail' => '', -'settings_previewWidthDetail_desc' => '', -'settings_previewWidthList' => '', +'settings_previewWidthDetail' => 'Szerokość obrazka podglądu (szczegóły)', +'settings_previewWidthDetail_desc' => 'Szerokość obrazka podglądu na stronie szczegółów', +'settings_previewWidthList' => 'Szerokość obrazka podglądu (lista)', 'settings_previewWidthList_desc' => 'Szerokość podglądu obrazu pokazanego na liście', 'settings_printDisclaimer' => 'Wyświetlaj Zrzeczenie się', 'settings_printDisclaimer_desc' => 'Zaznaczenie tej opcji spowoduje, że na dole strony będzie wyświetlany komunikat zrzeczenia się zawarty w pliku lang.inc.', @@ -1315,9 +1321,11 @@ URL: [url]', 'splash_document_added' => '', 'splash_document_checkedout' => '', 'splash_document_edited' => 'Dokument został zapisany', +'splash_document_indexed' => '', 'splash_document_locked' => 'Dokument zablokowany', 'splash_document_unlocked' => 'Odblokowano dokument', 'splash_edit_attribute' => 'Zapisano atrybuty', +'splash_edit_event' => '', 'splash_edit_group' => 'Grupa zapisana', 'splash_edit_role' => '', 'splash_edit_user' => 'Zapisano użytkownika', diff --git a/languages/pt_BR/lang.inc b/languages/pt_BR/lang.inc index e7b9d7ede..1191f27e5 100644 --- a/languages/pt_BR/lang.inc +++ b/languages/pt_BR/lang.inc @@ -547,8 +547,13 @@ URL: [url]', 'include_content' => '', 'include_documents' => 'Include documents', 'include_subdirectories' => 'Include subdirectories', +'indexing_tasks_in_queue' => '', 'index_converters' => 'Índice de conversão de documentos', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Pasta Raiz', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Individuals', 'indivіduals_in_groups' => '', 'inherited' => 'herdado', @@ -766,6 +771,7 @@ URL: [url]', 'only_jpg_user_images' => 'Somente imagens jpg podem ser utilizadas como avatar', 'order_by_sequence_off' => '', 'original_filename' => 'Arquivo original', +'overall_indexing_progress' => '', 'owner' => 'Proprietário', 'ownership_changed_email' => 'O proprietário mudou', 'ownership_changed_email_body' => 'Proprietário mudou @@ -1333,9 +1339,11 @@ URL: [url]', 'splash_document_added' => 'Documento inserido', 'splash_document_checkedout' => '', 'splash_document_edited' => 'Documento salvo', +'splash_document_indexed' => '', 'splash_document_locked' => 'Documento bloqueado', 'splash_document_unlocked' => 'Documento desbloqueado', 'splash_edit_attribute' => 'Atributo salvo', +'splash_edit_event' => '', 'splash_edit_group' => 'Grupo salvo', 'splash_edit_role' => '', 'splash_edit_user' => 'Usuário salvo', diff --git a/languages/ro_RO/lang.inc b/languages/ro_RO/lang.inc index 8e9bad055..830d10f4c 100644 --- a/languages/ro_RO/lang.inc +++ b/languages/ro_RO/lang.inc @@ -553,8 +553,13 @@ URL: [url]', 'include_content' => '', 'include_documents' => 'Include documente', 'include_subdirectories' => 'Include subfoldere', +'indexing_tasks_in_queue' => '', 'index_converters' => 'Indexare conversie documente', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Index folder', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Individuals', 'indivіduals_in_groups' => '', 'inherited' => 'moștenit', @@ -773,6 +778,7 @@ URL: [url]', 'only_jpg_user_images' => 'Doar imagini .jpg pot fi utilizate ca imagine-utilizator', 'order_by_sequence_off' => 'Ordonarea dupa secventa este dezactivata in setari. Daca doriti acest parametru sa aiba efect, va trebui sa-l reactivati.', 'original_filename' => 'Nume de fișier original', +'overall_indexing_progress' => '', 'owner' => 'Proprietar', 'ownership_changed_email' => 'Proprietar schimbat', 'ownership_changed_email_body' => 'Proprietar schimbat @@ -1358,9 +1364,11 @@ URL: [url]', 'splash_document_added' => 'Document adăugat', 'splash_document_checkedout' => 'Document verificat', 'splash_document_edited' => 'Document salvat', +'splash_document_indexed' => '', 'splash_document_locked' => 'Document blocat', 'splash_document_unlocked' => 'Document deblocat', 'splash_edit_attribute' => 'Atribut salvat', +'splash_edit_event' => '', 'splash_edit_group' => 'Grup salvat', 'splash_edit_role' => '', 'splash_edit_user' => 'Utilizator salvat', diff --git a/languages/ru_RU/lang.inc b/languages/ru_RU/lang.inc index 910a3360c..af73a6d70 100644 --- a/languages/ru_RU/lang.inc +++ b/languages/ru_RU/lang.inc @@ -553,8 +553,13 @@ URL: [url]', 'include_content' => 'Включая содержимое', 'include_documents' => 'Включая документы', 'include_subdirectories' => 'Включая подкаталоги', +'indexing_tasks_in_queue' => '', 'index_converters' => 'Индексирование документов', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Полнотекстовый индекс', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Пользователи', 'indivіduals_in_groups' => 'Пользователи группы', 'inherited' => 'унаследованный', @@ -772,6 +777,7 @@ URL: [url]', 'only_jpg_user_images' => 'Разрешены только .jpg-изображения', 'order_by_sequence_off' => 'Сортировка последовательности выключена в настройках. Если вы хотите применить этот эффект, вам необходимо его включить', 'original_filename' => 'Исходное имя файла', +'overall_indexing_progress' => '', 'owner' => 'Владелец', 'ownership_changed_email' => 'Владелец изменён', 'ownership_changed_email_body' => 'Изменён владелец @@ -1365,9 +1371,11 @@ URL: [url]', 'splash_document_added' => 'Добавлен документ', 'splash_document_checkedout' => 'Документ отправлен на обработку', 'splash_document_edited' => 'Документ сохранён', +'splash_document_indexed' => '', 'splash_document_locked' => 'Документ заблокирован', 'splash_document_unlocked' => 'Документ разблокирован', 'splash_edit_attribute' => 'Атрибут сохранён', +'splash_edit_event' => '', 'splash_edit_group' => 'Группа сохранена', 'splash_edit_role' => '', 'splash_edit_user' => 'Пользователь сохранён', diff --git a/languages/sk_SK/lang.inc b/languages/sk_SK/lang.inc index 1af5608c3..45d061d75 100644 --- a/languages/sk_SK/lang.inc +++ b/languages/sk_SK/lang.inc @@ -476,8 +476,13 @@ URL: [url]', 'include_content' => '', 'include_documents' => 'Vrátane súborov', 'include_subdirectories' => 'Vrátane podzložiek', +'indexing_tasks_in_queue' => '', 'index_converters' => '', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Indexovať zložku', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Jednotlivci', 'indivіduals_in_groups' => '', 'inherited' => 'zdedené', @@ -672,6 +677,7 @@ URL: [url]', 'only_jpg_user_images' => 'Ako obrázky používateľov je možné použiť iba obrázky .jpg', 'order_by_sequence_off' => '', 'original_filename' => '', +'overall_indexing_progress' => '', 'owner' => 'Vlastník', 'ownership_changed_email' => 'Majitel zmeneny', 'ownership_changed_email_body' => '', @@ -1190,9 +1196,11 @@ URL: [url]', 'splash_document_added' => '', 'splash_document_checkedout' => '', 'splash_document_edited' => '', +'splash_document_indexed' => '', 'splash_document_locked' => 'Dokument uzamknutý', 'splash_document_unlocked' => 'Dokument odomknutý', 'splash_edit_attribute' => '', +'splash_edit_event' => '', 'splash_edit_group' => '', 'splash_edit_role' => '', 'splash_edit_user' => '', diff --git a/languages/sv_SE/lang.inc b/languages/sv_SE/lang.inc index 45bae2628..d44ca6b6b 100644 --- a/languages/sv_SE/lang.inc +++ b/languages/sv_SE/lang.inc @@ -541,8 +541,13 @@ URL: [url]', 'include_content' => '', 'include_documents' => 'Inkludera dokument', 'include_subdirectories' => 'Inkludera under-kataloger', +'indexing_tasks_in_queue' => '', 'index_converters' => 'Omvandling av indexdokument', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Index mapp', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Personer', 'indivіduals_in_groups' => '', 'inherited' => 'ärvd', @@ -761,6 +766,7 @@ URL: [url]', 'only_jpg_user_images' => 'Bara .jpg-bilder kan användas som användarbild', 'order_by_sequence_off' => '', 'original_filename' => 'Ursprungligt filnamn', +'overall_indexing_progress' => '', 'owner' => 'Ägare', 'ownership_changed_email' => 'Ägare har ändrats', 'ownership_changed_email_body' => 'Ägare har ändrats @@ -1321,9 +1327,11 @@ URL: [url]', 'splash_document_added' => '', 'splash_document_checkedout' => '', 'splash_document_edited' => 'Dokument sparad', +'splash_document_indexed' => '', 'splash_document_locked' => 'Dokument låst', 'splash_document_unlocked' => 'Dokument upplåst', 'splash_edit_attribute' => 'Attribut sparat', +'splash_edit_event' => '', 'splash_edit_group' => 'Grupp sparat', 'splash_edit_role' => '', 'splash_edit_user' => 'Användare sparat', diff --git a/languages/tr_TR/lang.inc b/languages/tr_TR/lang.inc index 4e53b840d..607cfd5c8 100644 --- a/languages/tr_TR/lang.inc +++ b/languages/tr_TR/lang.inc @@ -19,7 +19,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // -// Translators: Admin (1046), aydin (83) +// Translators: Admin (1048), aydin (83) $text = array( '2_factor_auth' => '', @@ -399,7 +399,7 @@ URL: [url]', 'dump_creation_warning' => 'Bu işlemle veritabanınızın dump dosyasını oluşturabilirsiniz. Dump dosyası sunucunuzdaki data klasörüne kaydedilcektir.', 'dump_list' => 'Mevcut dump dosyaları', 'dump_remove' => 'Dump dosyasını sil', -'duplicate_content' => '', +'duplicate_content' => 'içeriği_klonla', 'edit' => 'Düzenle', 'edit_attributes' => 'Nitelikleri düzenle', 'edit_comment' => 'Açıklamayı düzenle', @@ -547,8 +547,13 @@ URL: [url]', 'include_content' => '', 'include_documents' => 'Dokümanları kapsa', 'include_subdirectories' => 'Alt klasörleri kapsa', +'indexing_tasks_in_queue' => '', 'index_converters' => 'Doküman dönüştürmeyi indeksle', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Klasörü indeksle', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Bireysel', 'indivіduals_in_groups' => '', 'inherited' => 'devralındı', @@ -767,6 +772,7 @@ URL: [url]', 'only_jpg_user_images' => 'Kullanıcı resmi olarak sadece .jpg uzantı resimler kullanılabilir', 'order_by_sequence_off' => '', 'original_filename' => 'Orijinal dosya adı', +'overall_indexing_progress' => '', 'owner' => 'Sahibi', 'ownership_changed_email' => 'Sahip değişti', 'ownership_changed_email_body' => 'Sahip değişti @@ -1024,7 +1030,7 @@ URL: [url]', 'settings_Authentication' => 'Yetkilendirme ayarları', 'settings_autoLoginUser' => '', 'settings_autoLoginUser_desc' => '', -'settings_available_languages' => '', +'settings_available_languages' => 'kullanılabilir diller', 'settings_available_languages_desc' => '', 'settings_backupDir' => '', 'settings_backupDir_desc' => '', @@ -1337,9 +1343,11 @@ URL: [url]', 'splash_document_added' => 'Doküman eklendi', 'splash_document_checkedout' => '', 'splash_document_edited' => 'Doküman kaydedildi', +'splash_document_indexed' => '', 'splash_document_locked' => 'Doküman kilitlendi', 'splash_document_unlocked' => 'Doküman kiliti açıldı', 'splash_edit_attribute' => 'Nitelik kaydedildi', +'splash_edit_event' => '', 'splash_edit_group' => 'Grup kaydedildi', 'splash_edit_role' => '', 'splash_edit_user' => 'Kullanıcı kaydedildi', diff --git a/languages/uk_UA/lang.inc b/languages/uk_UA/lang.inc index 5c2ed98b2..328451d0f 100644 --- a/languages/uk_UA/lang.inc +++ b/languages/uk_UA/lang.inc @@ -553,8 +553,13 @@ URL: [url]', 'include_content' => 'Включно з вмістом', 'include_documents' => 'Включно з документами', 'include_subdirectories' => 'Включно з підкаталогами', +'indexing_tasks_in_queue' => '', 'index_converters' => 'Індексування документів', +'index_done' => '', +'index_error' => '', 'index_folder' => 'Каталог індексу', +'index_pending' => '', +'index_waiting' => '', 'individuals' => 'Користувачі', 'indivіduals_in_groups' => 'Користувачі групи', 'inherited' => 'успадкований', @@ -772,6 +777,7 @@ URL: [url]', 'only_jpg_user_images' => 'Дозволені лише .jpg-зображення', 'order_by_sequence_off' => 'Можливість ручного сортування відключена в налаштуваннях. Якщо ви хочете використовувати цю функцію, ви повинні знову її включити.', 'original_filename' => 'Початкова назва файлу', +'overall_indexing_progress' => '', 'owner' => 'Власник', 'ownership_changed_email' => 'Власника змінено', 'ownership_changed_email_body' => 'Змінено власника @@ -1358,9 +1364,11 @@ URL: [url]', 'splash_document_added' => 'Додано документ', 'splash_document_checkedout' => 'Документ відправлено на опрацювання', 'splash_document_edited' => 'Документ збережено', +'splash_document_indexed' => '', 'splash_document_locked' => 'Документ заблоковано', 'splash_document_unlocked' => 'Документ розблоковано', 'splash_edit_attribute' => 'Атрибут збережено', +'splash_edit_event' => '', 'splash_edit_group' => 'Групу збережено', 'splash_edit_role' => '', 'splash_edit_user' => 'Користувача збережено', diff --git a/languages/zh_CN/lang.inc b/languages/zh_CN/lang.inc index c2724b378..a7c3f407c 100644 --- a/languages/zh_CN/lang.inc +++ b/languages/zh_CN/lang.inc @@ -19,7 +19,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // -// Translators: Admin (664), fengjohn (5) +// Translators: Admin (674), fengjohn (5) $text = array( '2_factor_auth' => '', @@ -237,7 +237,7 @@ URL: [url]', 'comment_changed_email' => '', 'comment_for_current_version' => '版本说明', 'confirm_clear_cache' => '', -'confirm_create_fulltext_index' => '', +'confirm_create_fulltext_index' => '确认重新创建全文索引', 'confirm_move_document' => '', 'confirm_move_folder' => '', 'confirm_pwd' => '确认密码', @@ -478,8 +478,13 @@ URL: [url]', 'include_content' => '', 'include_documents' => '包含文档', 'include_subdirectories' => '包含子目录', +'indexing_tasks_in_queue' => '', 'index_converters' => '索引文件转换', +'index_done' => '', +'index_error' => '', 'index_folder' => '索引目录', +'index_pending' => '', +'index_waiting' => '', 'individuals' => '个人', 'indivіduals_in_groups' => '', 'inherited' => '继承', @@ -674,6 +679,7 @@ URL: [url]', 'only_jpg_user_images' => '只用jpg格式的图片才可以作为用户身份图片', 'order_by_sequence_off' => '', 'original_filename' => '原始文件名', +'overall_indexing_progress' => '', 'owner' => '所有者', 'ownership_changed_email' => '所有者已变更', 'ownership_changed_email_body' => '', @@ -886,8 +892,8 @@ URL: [url]', 'settings_cacheDir' => '', 'settings_cacheDir_desc' => '', 'settings_Calendar' => '', -'settings_calendarDefaultView' => '', -'settings_calendarDefaultView_desc' => '', +'settings_calendarDefaultView' => '日历默认试图', +'settings_calendarDefaultView_desc' => '日历默认试图', 'settings_cannot_disable' => '', 'settings_checkOutDir' => '', 'settings_checkOutDir_desc' => '', @@ -897,8 +903,8 @@ URL: [url]', 'settings_contentDir_desc' => '', 'settings_contentOffsetDir' => '内容偏移目录', 'settings_contentOffsetDir_desc' => '要解决在底层文件系统的限制,一个新的目录结构已制定了内容目录(内容目录)中存在的。这需要从它开始一个基本目录。通常离开这个为默认设置,1048576,也可以是内(内容目录)不存在任何数字或字符串', -'settings_convertToPdf' => '', -'settings_convertToPdf_desc' => '', +'settings_convertToPdf' => '将文档转换为pdf预览', +'settings_convertToPdf_desc' => '如果浏览器不支持原始文件预览,允许转换为pdf文件预览', 'settings_cookieLifetime' => '', 'settings_cookieLifetime_desc' => '', 'settings_coreDir' => 'SeedDMS核心目录', @@ -934,7 +940,7 @@ URL: [url]', 'settings_dropFolderDir' => '', 'settings_dropFolderDir_desc' => '', 'settings_Edition' => '编辑设置', -'settings_editOnlineFileTypes' => '', +'settings_editOnlineFileTypes' => '编辑在线文件类型', 'settings_editOnlineFileTypes_desc' => '', 'settings_enable2FactorAuthentication' => '', 'settings_enable2FactorAuthentication_desc' => '', @@ -1015,7 +1021,7 @@ URL: [url]', 'settings_Extensions' => '', 'settings_extraPath' => '额外的PHP的include路径', 'settings_extraPath_desc' => '附加软件的路径。这是包含目录,例如在ADODB目录或额外的PEAR包', -'settings_firstDayOfWeek' => '', +'settings_firstDayOfWeek' => '每周第一天', 'settings_firstDayOfWeek_desc' => '', 'settings_footNote' => '附注', 'settings_footNote_desc' => '显示在每个页面底部的信息', @@ -1101,14 +1107,14 @@ URL: [url]', 'settings_removeFromDropFolder_desc' => '', 'settings_restricted' => '', 'settings_restricted_desc' => '', -'settings_rootDir' => '', +'settings_rootDir' => '根目录', 'settings_rootDir_desc' => '', 'settings_rootFolderID' => '', 'settings_rootFolderID_desc' => '', 'settings_SaveError' => '', -'settings_Server' => '', +'settings_Server' => '服务设置', 'settings_showFullPreview' => '显示完整的文档', -'settings_showFullPreview_desc' => '', +'settings_showFullPreview_desc' => '启用/禁用详细页面完整预览, 如果浏览器>支持的话', 'settings_showMissingTranslations' => '显示丢失的翻译', 'settings_showMissingTranslations_desc' => '', 'settings_showSingleSearchHit' => '', @@ -1192,9 +1198,11 @@ URL: [url]', 'splash_document_added' => '', 'splash_document_checkedout' => '', 'splash_document_edited' => '', +'splash_document_indexed' => '', 'splash_document_locked' => '文档已被锁定', 'splash_document_unlocked' => '已解锁的文档', 'splash_edit_attribute' => '', +'splash_edit_event' => '', 'splash_edit_group' => '', 'splash_edit_role' => '', 'splash_edit_user' => '', diff --git a/languages/zh_TW/lang.inc b/languages/zh_TW/lang.inc index db14a965c..0f74788b8 100644 --- a/languages/zh_TW/lang.inc +++ b/languages/zh_TW/lang.inc @@ -19,7 +19,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // -// Translators: Admin (2374) +// Translators: Admin (2376) $text = array( '2_factor_auth' => '', @@ -476,8 +476,13 @@ URL: [url]', 'include_content' => '', 'include_documents' => '包含文檔', 'include_subdirectories' => '包含子目錄', +'indexing_tasks_in_queue' => '', 'index_converters' => '索引檔轉換', +'index_done' => '', +'index_error' => '', 'index_folder' => '索引目錄', +'index_pending' => '', +'index_waiting' => '', 'individuals' => '個人', 'indivіduals_in_groups' => '', 'inherited' => '繼承', @@ -672,6 +677,7 @@ URL: [url]', 'only_jpg_user_images' => '只用jpg格式的圖片才可以作為使用者身份圖片', 'order_by_sequence_off' => '', 'original_filename' => '', +'overall_indexing_progress' => '', 'owner' => '所有者', 'ownership_changed_email' => '所有者已變更', 'ownership_changed_email_body' => '', @@ -1129,9 +1135,9 @@ URL: [url]', 'settings_smtpUser_desc' => '', 'settings_sortFoldersDefault' => '', 'settings_sortFoldersDefault_desc' => '', -'settings_sortFoldersDefault_val_name' => '', +'settings_sortFoldersDefault_val_name' => '按名称', 'settings_sortFoldersDefault_val_sequence' => '', -'settings_sortFoldersDefault_val_unsorted' => '', +'settings_sortFoldersDefault_val_unsorted' => '不排序', 'settings_sortUsersInList' => '', 'settings_sortUsersInList_desc' => '', 'settings_sortUsersInList_val_fullname' => '', @@ -1190,9 +1196,11 @@ URL: [url]', 'splash_document_added' => '', 'splash_document_checkedout' => '', 'splash_document_edited' => '', +'splash_document_indexed' => '', 'splash_document_locked' => '文檔已被鎖定', 'splash_document_unlocked' => '已解鎖的文檔', 'splash_edit_attribute' => '', +'splash_edit_event' => '', 'splash_edit_group' => '', 'splash_edit_role' => '', 'splash_edit_user' => '', diff --git a/op/op.PdfPreview.php b/op/op.PdfPreview.php new file mode 100644 index 000000000..48c85485f --- /dev/null +++ b/op/op.PdfPreview.php @@ -0,0 +1,77 @@ +getDocument($documentid); +if (!is_object($document)) { + exit; +} + +if ($document->getAccessMode($user) < M_READ) { + exit; +} + +if(isset($_GET['version'])) { + $version = $_GET["version"]; + if (!is_numeric($version)) + exit; + if(intval($version)<1) + $object = $document->getLatestContent(); + else + $object = $document->getContentByVersion($version); +} elseif(isset($_GET['file'])) { + $file = $_GET['file']; + if (!is_numeric($file) || intval($file)<1) + exit; + $object = $document->getDocumentFile($file); +} else { + exit; +} + +if (!is_object($object)) { + exit; +} + +$previewer = new SeedDMS_Preview_PdfPreviewer($settings->_cacheDir); +if(!$previewer->hasPreview($object)) + $previewer->createPreview($object); +header('Content-Type: application/pdf'); +$previewer->getPreview($object); + diff --git a/themes/default/DocumentPageEnd.html b/themes/default/DocumentPageEnd.html deleted file mode 100644 index 65b21cf46..000000000 --- a/themes/default/DocumentPageEnd.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - -   - - - - - - - -
:
- - - diff --git a/themes/default/DocumentPageStart.html b/themes/default/DocumentPageStart.html deleted file mode 100644 index b3e808dee..000000000 --- a/themes/default/DocumentPageStart.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - -
- - - - - - -
" width="53" height="19" border="0" alt="">" width="42" height="19" border="0" alt="">
-
-
    diff --git a/themes/default/EndBox.html b/themes/default/EndBox.html deleted file mode 100644 index 3451fac7d..000000000 --- a/themes/default/EndBox.html +++ /dev/null @@ -1,26 +0,0 @@ - - -
- - - diff --git a/themes/default/FolderPageEnd.html b/themes/default/FolderPageEnd.html deleted file mode 100644 index 571042790..000000000 --- a/themes/default/FolderPageEnd.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - -   - - - - - - - -
:
- - - diff --git a/themes/default/FolderPageStart.html b/themes/default/FolderPageStart.html deleted file mode 100644 index b3e808dee..000000000 --- a/themes/default/FolderPageStart.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - -
- - - - - - -
" width="53" height="19" border="0" alt="">" width="42" height="19" border="0" alt="">
-
-
    diff --git a/themes/default/HTMLFoot.html b/themes/default/HTMLFoot.html deleted file mode 100644 index 0a5732e0a..000000000 --- a/themes/default/HTMLFoot.html +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/themes/default/HTMLHead.html b/themes/default/HTMLHead.html deleted file mode 100644 index da24a4fcd..000000000 --- a/themes/default/HTMLHead.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - <?php echo $title?> - - - diff --git a/themes/default/NextBox.html b/themes/default/NextBox.html deleted file mode 100644 index 4350b81e3..000000000 --- a/themes/default/NextBox.html +++ /dev/null @@ -1,42 +0,0 @@ - - -
- - - -   - - - - - - - -
 :
- - - - - - - - - - - - - - - - -
diff --git a/themes/default/StartBox.html b/themes/default/StartBox.html deleted file mode 100644 index 9057e790c..000000000 --- a/themes/default/StartBox.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - -
- - - - -
 :
-
- - - - - - - - - - - - -
diff --git a/themes/default/TitleBar.html b/themes/default/TitleBar.html deleted file mode 100644 index cf643910b..000000000 --- a/themes/default/TitleBar.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
diff --git a/themes/default/styles.css b/themes/default/styles.css deleted file mode 100644 index 69d0f8466..000000000 --- a/themes/default/styles.css +++ /dev/null @@ -1,189 +0,0 @@ -a { text-decoration: none; } -a:hover { text-decoration: underline; } - -.titlebar { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - background-color : #000080; - font-size : 12pt; - color : White; - font-weight: bold; -} - -.header1 { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 11pt; - font-style : italic; - color : #000080; -} - -.foldertree { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; -} - -.foldertree_inpath { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - font-style: italic; -} - -.foldertree_active { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 9pt; - color: black; - font-weight: bold; -} - -.path { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - background-color : #A0A1CE; - font-size : 10pt; - color: black; -} - -.editfolder { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - background-color : #A0A1CE; - font-size : 10pt; - color: black; -} - -.editdocument { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - background-color : #A0A1CE; - font-size : 10pt; - color: black; -} - -.infos { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; -} - -.filelist { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; -} - -.subfolderlist { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; -} - -.linklist { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; -} - -.boxHeader { - color : White; - background-color : #000080; - font-style : italic; - font-size : 11pt; - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; -} - -.boxBorder { - border: 1pt solid #000080; -} - -.pageHeader { - font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size: 13pt; - font-weight: bold; - color: #000080; -} - - .inputDescription { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - font-style: italic; -} - -.notifylist { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; -} - -.inheritAccess -{ - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; -} - -.accessList -{ - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; -} - -.defaultAccess -{ - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; -} - -.msgLocked -{ - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; -} - -.standardText -{ - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; -} - -.groupMembers -{ - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; -} - -.hline -{ - background-color : #000080; -} - -.mimeicon { - height: 24px; - width: 24px; - border: 0; -} - -/* - * Classes for Checkbox Selection 'Widget'. - */ -.cbSelectTitle { - float:left; - width: 6em; -} -.cbSelectContainer { - overflow:auto; - height: 6em; - border: thin solid; -} -.cbSelectList { - padding: 0.1em; -} -.cbSelectItem{ - list-style-type: none; -} -.cbSelectMargin { - margin-top:0.2em; -} diff --git a/themes/original/DocumentPageEnd.html b/themes/original/DocumentPageEnd.html deleted file mode 100644 index eff0c582f..000000000 --- a/themes/original/DocumentPageEnd.html +++ /dev/null @@ -1,45 +0,0 @@ - - -
"> -   - - - - - - -
- : - - -
-
"> -   -  
diff --git a/themes/original/DocumentPageStart.html b/themes/original/DocumentPageStart.html deleted file mode 100644 index ba2d941c5..000000000 --- a/themes/original/DocumentPageStart.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
-   - - - "> -   - - -
-  

- getPath(), 0, $document, false); ?> -

"> -   - - - - - - - -
" - width="53" height="19" border="0" alt=""> - - " - width="42" height="19" border="0" alt="">
-
"> -   - -
    diff --git a/themes/original/EndBox.html b/themes/original/EndBox.html deleted file mode 100644 index af82e108f..000000000 --- a/themes/original/EndBox.html +++ /dev/null @@ -1,25 +0,0 @@ - - -
-
diff --git a/themes/original/FolderPageEnd.html b/themes/original/FolderPageEnd.html deleted file mode 100644 index 81f1271b4..000000000 --- a/themes/original/FolderPageEnd.html +++ /dev/null @@ -1,46 +0,0 @@ - - - -
"> -   - - - - - - -
- : - - -
-
"> -   -  
diff --git a/themes/original/FolderPageStart.html b/themes/original/FolderPageStart.html deleted file mode 100644 index 49f2509aa..000000000 --- a/themes/original/FolderPageStart.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
-   - - - "> -   - - -
-  

- getPath(), 0, $folder, true); ?> -

"> -   - - - - - - - -
" - width="53" height="19" border="0" alt=""> - - " - width="42" height="19" border="0" alt="">
-
"> -   - -
    diff --git a/themes/original/HTMLFoot.html b/themes/original/HTMLFoot.html deleted file mode 100644 index 99e3068ea..000000000 --- a/themes/original/HTMLFoot.html +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/themes/original/HTMLHead.html b/themes/original/HTMLHead.html deleted file mode 100644 index debc509b3..000000000 --- a/themes/original/HTMLHead.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - <?php echo $title?> - - - diff --git a/themes/original/NextBox.html b/themes/original/NextBox.html deleted file mode 100644 index d809b7c94..000000000 --- a/themes/original/NextBox.html +++ /dev/null @@ -1,42 +0,0 @@ - - -
- - - -   - - - - - - - -
 :
- - - - - - - - "; - - if ($showtree==1){ - - print " - -
diff --git a/themes/original/StartBox.html b/themes/original/StartBox.html deleted file mode 100644 index 9d6b0abe7..000000000 --- a/themes/original/StartBox.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - -
- - - - -
 :
-
- - - "; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - $indUser = $dms->getUser($approvalStatus["userID"]); - print ""; - print "
diff --git a/themes/original/TitleBar.html b/themes/original/TitleBar.html deleted file mode 100644 index f71e4d86d..000000000 --- a/themes/original/TitleBar.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - -
- -
diff --git a/themes/original/styles.css b/themes/original/styles.css deleted file mode 100644 index 7b7856637..000000000 --- a/themes/original/styles.css +++ /dev/null @@ -1,161 +0,0 @@ - a { text-decoration: none; } - a:hover { text-decoration: underline; } - - .titlebar { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - background-color : #000080; - font-size : 12pt; - color : White; - font-weight: bold; - } - - .header1 { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 11pt; - font-style : italic; - color : #000080; - } - - .foldertree { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - } - - .foldertree_inpath { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - font-style: italic; - } - - .foldertree_active { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 9pt; - color: black; - font-weight: bold; - } - - .path { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - background-color : #A0A1CE; - font-size : 10pt; - color: black; - } - - .editfolder { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - background-color : #A0A1CE; - font-size : 10pt; - color: black; - } - - .editdocument { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - background-color : #A0A1CE; - font-size : 10pt; - color: black; - } - - .infos { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - } - - .filelist { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - } - - .subfolderlist { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - } - - .linklist { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - } - - .boxHeader { - color : White; - background-color : #000080; - font-style : italic; - font-size : 11pt; - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - } - - .boxBorder { - border: 1pt solid #000080; - } - - .pageHeader { - font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size: 13pt; - font-weight: bold; - color: #000080; - } - - .inputDescription { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - font-style: italic; - } - - .notifylist { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - } - - .inheritAccess - { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - } - - .accessList - { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - } - - .defaultAccess - { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - } - - .msgLocked - { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - } - - .standardText - { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - } - - .groupMembers - { - font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 10pt; - color: black; - } - - .hline - { - background-color : #000080; - } diff --git a/views/blue/class.AddDocument.php b/views/blue/class.AddDocument.php deleted file mode 100644 index b17be9dc6..000000000 --- a/views/blue/class.AddDocument.php +++ /dev/null @@ -1,287 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for AddDocument view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_AddDocument extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $enablelargefileupload = $this->params['enablelargefileupload']; - $enableadminrevapp = $this->params['enableadminrevapp']; - $enableownerrevapp = $this->params['enableownerrevapp']; - $enableselfrevapp = $this->params['enableselfrevapp']; - $strictformcheck = $this->params['strictformcheck']; - $dropfolderdir = $this->params['dropfolderdir']; - $folderid = $folder->getId(); - - $this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true), "view_folder", $folder); - -?> - - -contentHeading(getMLText("add_document")); - $this->contentContainerStart(); - - // Retrieve a list of all users and groups that have review / approve - // privileges. - $docAccess = $folder->getReadAccessList($enableadminrevapp, $enableownerrevapp); - ?> - - - - - - - - - -
- contentSubHeading(getMLText("document_infos")); ?> - -
- - - - - - - - - - - - - - - - - - - - - - - - -getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_document, SeedDMS_Core_AttributeDefinition::objtype_all)); - if($attrdefs) { - foreach($attrdefs as $attrdef) { -?> - - - - - - - - - - -
:
:
: -
- - -
:printCategoryChooser("form1");?>
:printSequenceChooser($folder->getDocuments());?>
getName()); ?>printAttributeEditField($attrdef, '') ?>
: -
- printDateChooser(-1, "exp");?> -
- - contentSubHeading(getMLText("version_info")); ?> - - - - - - - - - - - - - - - - - - - -getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all)); - if($attrdefs) { - foreach($attrdefs as $attrdef) { -?> - - - - - -
:
: - -
    -
  1. -
-
:printDropFolderChooser("form1");?>
:
getName()); ?>printAttributeEditField($attrdef, '', 'attributes_version') ?>
- - contentSubHeading(getMLText("assign_reviewers")); ?> - -
:
-
-
    -getMandatoryReviewers(); - foreach ($docAccess["users"] as $usr) { - if (!$enableselfrevapp && $usr->getID()==$user->getID()) continue; - $mandatory=false; - foreach ($res as $r) if ($r['reviewerUserID']==$usr->getID()) $mandatory=true; - - if ($mandatory) print "
  • ". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName())."
  • "; - else print "
  • ". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName())."
  • "; - } -?> -
-
-
:
-
-
    -getID()) $mandatory=true; - - if ($mandatory) print "
  • ".htmlspecialchars($grp->getName())."
  • "; - else print "
  • ".htmlspecialchars($grp->getName())."
  • "; - } - ?> -
-
- - contentSubHeading(getMLText("assign_approvers")); ?> - -
:
-
-
    -getMandatoryApprovers(); - foreach ($docAccess["users"] as $usr) { - if (!$enableselfrevapp && $usr->getID()==$user->getID()) continue; - $mandatory=false; - foreach ($res as $r) if ($r['approverUserID']==$usr->getID()) $mandatory=true; - - if ($mandatory) print "
  • ". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName()); - else print "
  • ". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName()); - } -?> -
-
-
:
-
-
    -getID()) $mandatory=true; - - if ($mandatory) print "
  • ".htmlspecialchars($grp->getName()); - else print "
  • ".htmlspecialchars($grp->getName()); - - } - ?> -
-
- -

-

">

-
-contentContainerEnd(); - $this->htmlEndPage(); - - } /* }}} */ -} -?> diff --git a/views/blue/class.AddEvent.php b/views/blue/class.AddEvent.php deleted file mode 100644 index d97b59b4a..000000000 --- a/views/blue/class.AddEvent.php +++ /dev/null @@ -1,93 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for AddEvent view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_AddEvent extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - - $this->htmlStartPage(getMLText("calendar")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("calendar"), "calendar"); - - $this->contentHeading(getMLText("add_event")); - $this->contentContainerStart(); -?> - - -
- - - - - - - - - - - - - - - - - - - - -
:printDateChooser(-1, "from");?>
:printDateChooser(-1, "to");?>
:
:

">
-
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.AddFile.php b/views/blue/class.AddFile.php deleted file mode 100644 index 9fef01dab..000000000 --- a/views/blue/class.AddFile.php +++ /dev/null @@ -1,107 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for AddFile view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_AddFile extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - $strictformcheck = $this->params['strictformcheck']; - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - -?> - -contentHeading(getMLText("linked_files")); - $this->contentContainerStart(); - -?> - - - - - - - -
getId()); ?>

- -
- - - - - - - - - - - - - - -
:
:
:
- -

">

-
-contentContainerEnd(); - $this->htmlEndPage(); - - } /* }}} */ -} -?> diff --git a/views/blue/class.AddFile2.php b/views/blue/class.AddFile2.php deleted file mode 100644 index 168e43e79..000000000 --- a/views/blue/class.AddFile2.php +++ /dev/null @@ -1,53 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for AddFile2 view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_AddFile2 extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - - $this->contentHeading(getMLText("linked_files")); - $this->contentContainerStart(); - - $this->printUploadApplet('../op/op.AddFile2.php', array('documentid'=>$document->getId()), 1, array('name'=>1, 'comment'=>1)); - - $this->contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.AddMultiDocument.php b/views/blue/class.AddMultiDocument.php deleted file mode 100644 index b8555a908..000000000 --- a/views/blue/class.AddMultiDocument.php +++ /dev/null @@ -1,69 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for AddMultiDocument view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_AddMultiDocument extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - - $this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true), "view_folder", $folder); - -?> - - -contentHeading(getMLText("add_document")); - $this->contentContainerStart(); - - // Retrieve a list of all users and groups that have review / approve - // privileges. - $docAccess = $folder->getReadAccessList(); - - $this->printUploadApplet('../op/op.AddMultiDocument.php', array('folderid'=>$folder->getId())); - - $this->contentContainerEnd(); - $this->htmlEndPage(); - - } /* }}} */ -} -?> diff --git a/views/blue/class.AddSubFolder.php b/views/blue/class.AddSubFolder.php deleted file mode 100644 index 72711e0c0..000000000 --- a/views/blue/class.AddSubFolder.php +++ /dev/null @@ -1,108 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for AddSubFolder view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_AddSubFolder extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $strictformcheck = $this->params['strictformcheck']; - - $this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true), "view_folder", $folder); - $this->contentHeading(getMLText("add_subfolder")); - $this->contentContainerStart(); -?> - - -
- - - - - - - - - - - - - - - - -getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_folder, SeedDMS_Core_AttributeDefinition::objtype_all)); - if($attrdefs) { - foreach($attrdefs as $attrdef) { -?> - - - - - - - - -
:
:
:printSequenceChooser($folder->getSubFolders());?>
getName()); ?>:printAttributeEditField($attrdef, '') ?>

">
-
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.AdminTools.php b/views/blue/class.AdminTools.php deleted file mode 100644 index 3f4ac5b73..000000000 --- a/views/blue/class.AdminTools.php +++ /dev/null @@ -1,74 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for AdminTools view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_AdminTools extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $logfileenable = $this->params['logfileenable']; - $enablefullsearch = $this->params['enablefullsearch']; - - $this->htmlStartPage(getMLText("admin_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - $this->contentContainerStart(); -?> - -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.ApprovalSummary.php b/views/blue/class.ApprovalSummary.php deleted file mode 100644 index 233b1d347..000000000 --- a/views/blue/class.ApprovalSummary.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for ApprovalSummary view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_ApprovalSummary extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $db = $dms->getDB(); - - $this->htmlStartPage(getMLText("approval_summary")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("my_documents"), "my_documents"); - $this->contentHeading(getMLText("approval_summary")); - $this->contentContainerStart(); - - if (!$db->createTemporaryTable("ttstatid")) { - $this->exitError(getMLText("approval_summary"),getMLText("internal_error_exit")); - } - - // TODO: verificare scadenza - - // Get document list for the current user. - $approvalStatus = $user->getApprovalStatus(); - - // reverse order - $approvalStatus["indstatus"]=array_reverse($approvalStatus["indstatus"],true); - $approvalStatus["grpstatus"]=array_reverse($approvalStatus["grpstatus"],true); - - // Create a comma separated list of all the documentIDs whose information is - // required. - $dList = array(); - foreach ($approvalStatus["indstatus"] as $st) { - if (!in_array($st["documentID"], $dList)) { - $dList[] = $st["documentID"]; - } - } - foreach ($approvalStatus["grpstatus"] as $st) { - if (!in_array($st["documentID"], $dList)) { - $dList[] = $st["documentID"]; - } - } - $docCSV = ""; - foreach ($dList as $d) { - $docCSV .= (strlen($docCSV)==0 ? "" : ", ")."'".$d."'"; - } - - if (strlen($docCSV)>0) { - - $queryStr = "SELECT `tblDocuments`.*, `tblDocumentLocks`.`userID` as `lockUser`, ". - "`tblDocumentStatus`.*, `tblDocumentStatusLog`.`status`, ". - "`tblDocumentStatusLog`.`comment` AS `statusComment`, `tblDocumentStatusLog`.`date` as `statusDate`, ". - "`tblDocumentStatusLog`.`userID`, `oTbl`.`fullName` AS `ownerName`, `sTbl`.`fullName` AS `statusName` ". - "FROM `tblDocumentStatus` ". - "LEFT JOIN `tblDocumentStatusLog` USING (`statusID`) ". - "LEFT JOIN `ttstatid` on `ttstatid`.`maxLogID` = `tblDocumentStatusLog`.`statusLogID` ". - "LEFT JOIN `tblDocuments` ON `tblDocuments`.`id` = `tblDocumentStatus`.`documentID` ". - "LEFT JOIN `tblDocumentLocks` ON `tblDocuments`.`id`=`tblDocumentLocks`.`document` ". - "LEFT JOIN `tblUsers` AS `oTbl` on `oTbl`.`id` = `tblDocuments`.`owner` ". - "LEFT JOIN `tblUsers` AS `sTbl` on `sTbl`.`id` = `tblDocumentStatusLog`.`userID` ". - "WHERE `ttstatid`.`maxLogID`=`tblDocumentStatusLog`.`statusLogID` ". - "AND `tblDocuments`.`id` IN (" . $docCSV . ") ". - "ORDER BY `statusDate` DESC"; - - $resArr = $db->getResultArray($queryStr); - - if (is_bool($resArr) && !$resArr) { - $this->exitError(getMLText("approval_summary"),getMLText("internal_error_exit")); - } - // Create an array to hold all of these results, and index the array by - // document id. This makes it easier to retrieve document ID information - // later on and saves us having to repeatedly poll the database every time - // new document information is required. - $docIdx = array(); - foreach ($resArr as $res) { - - // verify expiry - if ( $res["expires"] && time()>$res["expires"]+24*60*60 ){ - if ( $res["status"]==S_DRAFT_APP || $res["status"]==S_DRAFT_REV ){ - $res["status"]=S_EXPIRED; - } - } - - $docIdx[$res["id"]][$res["version"]] = $res; - } - } - - $iRev = array(); - $printheader = true; - foreach ($approvalStatus["indstatus"] as $st) { - - if (isset($docIdx[$st["documentID"]][$st["version"]])) { - - if ($printheader){ - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - $printheader = false; - } - - print "\n"; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print "\n"; - } - if ($st["status"]!=-2) { - $iRev[] = $st["documentID"]; - } - } - if (!$printheader) { - echo "\n
".getMLText("name")."".getMLText("owner")."".getMLText("status")."".getMLText("version")."".getMLText("last_update")."".getMLText("expires")."
".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."".getOverallStatusText($docIdx[$st["documentID"]][$st["version"]]["status"])."".$st["version"]."".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"]) ."".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."
\n"; - }else{ - printMLText("no_approval_needed"); - } - - $this->contentContainerEnd(); - $this->contentHeading(getMLText("group_approval_summary")); - $this->contentContainerStart(); - - $printheader = true; - foreach ($approvalStatus["grpstatus"] as $st) { - - if (!in_array($st["documentID"], $iRev) && isset($docIdx[$st["documentID"]][$st["version"]])) { - - if ($printheader){ - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - $printheader = false; - } - - print "\n"; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print "\n"; - } - } - if (!$printheader) { - echo "\n
".getMLText("name")."".getMLText("owner")."".getMLText("status")."".getMLText("version")."".getMLText("last_update")."".getMLText("expires")."
".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."".getOverallStatusText($docIdx[$st["documentID"]][$st["version"]]["status"])."".$st["version"]."".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"]) ."".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."
\n"; - }else{ - printMLText("empty_notify_list"); - } - - $this->contentContainerEnd(); - $this->htmlEndPage(); - - } /* }}} */ -} -?> diff --git a/views/blue/class.ApproveDocument.php b/views/blue/class.ApproveDocument.php deleted file mode 100644 index b2bc11091..000000000 --- a/views/blue/class.ApproveDocument.php +++ /dev/null @@ -1,182 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for ApproveDocument view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_ApproveDocument extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - - $latestContent = $document->getLatestContent(); - $approvals = $latestContent->getApprovalStatus(); - - foreach($approvals as $approval) { - if($approval['approveID'] == $_GET['approveid']) { - $approvalStatus = $approval; - break; - } - } - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - $this->contentHeading(getMLText("submit_approval")); -?> - - -contentContainerStart(); - - // Display the Approval form. - if ($approvalStatus['type'] == 0) { - if($approvalStatus["status"]!=0) { - - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - $indUser = $dms->getUser($approvalStatus["userID"]); - print ""; - print "
".getMLText("status")."".getMLText("comment")."".getMLText("last_update")."
"; - printApprovalStatusText($approvalStatus["status"]); - print "".htmlspecialchars($approvalStatus["comment"])."".$approvalStatus["date"]." - ". $indUser->getFullname() ."

\n"; - } -?> -
- - - - - -
: -
: -
- - - - -
-
-
".getMLText("status")."".getMLText("comment")."".getMLText("last_update")."
"; - printApprovalStatusText($approvalStatus["status"]); - print "".htmlspecialchars($approvalStatus["comment"])."".$approvalStatus["date"]." - ". htmlspecialchars($indUser->getFullname()) ."

\n"; - } - -?> -
- - - - - - - -
: -
: - -
- - - - -
-
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.AttributeMgr.php b/views/blue/class.AttributeMgr.php deleted file mode 100644 index 1ae4ed4a7..000000000 --- a/views/blue/class.AttributeMgr.php +++ /dev/null @@ -1,255 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for AttributeMgr view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_AttributeMgr extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $attrdefs = $this->params['attrdefs']; - - $this->htmlStartPage(getMLText("admin_tools")); -?> - - -globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - $this->contentHeading(getMLText("attrdef_management")); - $this->contentContainerStart(); -?> - - - - - - - - -getID()."\" style=\"display : none;\">"; -?> -
: - -    -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-isUsed()) { -?> -
- - - - " type="submit"> -
- -

- -
- contentSubHeading("");?> -
- - - - : - - -
- : - - -
- : - - -
- : - - getMultipleValues() ? "checked" : "" ?>/> -
- : - - -
- : - - -
- : - - -
- "> -
-
- - - -contentContainerEnd(); - $this->htmlEndPage(); - - } /* }}} */ -} -?> diff --git a/views/blue/class.BackupTools.php b/views/blue/class.BackupTools.php deleted file mode 100644 index 72c67868d..000000000 --- a/views/blue/class.BackupTools.php +++ /dev/null @@ -1,195 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for BackupTools view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_BackupTools extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $contentdir = $this->params['contentdir']; - - $this->htmlStartPage(getMLText("backup_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - - $this->contentHeading(getMLText("backup_tools")); - $this->contentContainerStart(); - print getMLText("space_used_on_data_folder")." : ".SeedDMS_Core_File::format_filesize(dskspace($contentdir)); - $this->contentContainerEnd(); - - // versioning file creation //////////////////////////////////////////////////// - - $this->contentHeading(getMLText("versioning_file_creation")); - $this->contentContainerStart(); - print "

".getMLText("versioning_file_creation_warning")."

\n"; - - print "
"; - $this->printFolderChooser("form1",M_READWRITE); - print ""; - print "
\n"; - - $this->contentContainerEnd(); - - // archive creation //////////////////////////////////////////////////////////// - - $this->contentHeading(getMLText("archive_creation")); - $this->contentContainerStart(); - print "

".getMLText("archive_creation_warning")."

\n"; - - print "
"; - $this->printFolderChooser("form2",M_READWRITE); - print "".getMLText("human_readable"); - print ""; - print "
\n"; - - // list backup files - $this->contentSubHeading(getMLText("backup_list")); - - $print_header=true; - - $handle = opendir($contentdir); - $entries = array(); - while ($e = readdir($handle)){ - if (is_dir($contentdir.$e)) continue; - if (strpos($e,".tar.gz")==FALSE) continue; - $entries[] = $e; - } - closedir($handle); - - sort($entries); - $entries = array_reverse($entries); - - foreach ($entries as $entry){ - - if ($print_header){ - print "\n"; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - $print_header=false; - } - - $folderid=substr($entry,strpos($entry,"_")+1); - $folder=$dms->getFolder((int)$folderid); - - print "\n"; - print "\n"; - if (is_object($folder)) print "\n"; - else print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - } - - if ($print_header) printMLText("empty_notify_list"); - else print "
".getMLText("folder")."".getMLText("creation_date")."".getMLText("file_size")."
".$entry."".htmlspecialchars($folder->getName())."".getMLText("unknown_id")."".getLongReadableDate(filectime($contentdir.$entry))."".SeedDMS_Core_File::format_filesize(filesize($contentdir.$entry))."
\n"; - - $this->contentContainerEnd(); - - // dump creation /////////////////////////////////////////////////////////////// - - $this->contentHeading(getMLText("dump_creation")); - $this->contentContainerStart(); - print "

".getMLText("dump_creation_warning")."

\n"; - - print "
"; - print ""; - print "
\n"; - - // list backup files - $this->contentSubHeading(getMLText("dump_list")); - - $print_header=true; - - $handle = opendir($contentdir); - $entries = array(); - while ($e = readdir($handle)){ - if (is_dir($contentdir.$e)) continue; - if (strpos($e,".sql.gz")==FALSE) continue; - $entries[] = $e; - } - closedir($handle); - - sort($entries); - $entries = array_reverse($entries); - - foreach ($entries as $entry){ - - if ($print_header){ - print "\n"; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - $print_header=false; - } - - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - } - - if ($print_header) printMLText("empty_notify_list"); - else print "
".getMLText("creation_date")."".getMLText("file_size")."
".$entry."".getLongReadableDate(filectime($contentdir.$entry))."".SeedDMS_Core_File::format_filesize(filesize($contentdir.$entry))."
\n"; - - $this->contentContainerEnd(); - - // files deletion ////////////////////////////////////////////////////////////// - - $this->contentHeading(getMLText("files_deletion")); - $this->contentContainerStart(); - print "

".getMLText("files_deletion_warning")."

\n"; - - print "
"; - $this->printFolderChooser("form3",M_READWRITE); - print ""; - print "
\n"; - - $this->contentContainerEnd(); - - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.BlueStyle.php b/views/blue/class.BlueStyle.php deleted file mode 100644 index 15a7274c0..000000000 --- a/views/blue/class.BlueStyle.php +++ /dev/null @@ -1,1071 +0,0 @@ -theme = $theme; - $this->params = $params; - } - - protected function htmlStartPage($title="", $bodyClass="") { /* {{{ */ - - if(file_exists("../themes/".$this->theme."/HTMLHead.html")) { - include("../themes/".$this->theme."/HTMLHead.html"); - } else { - echo "\n"; - echo "\n\n"; - echo "\n"; - echo "theme."/style.css\"/>\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo ''."\n"; - echo "".(strlen($this->params['sitename'])>0 ? $this->params['sitename'] : "SeedDMS").(strlen($title)>0 ? ": " : "").htmlspecialchars($title)."\n"; - echo "\n"; - echo "0 ? " class=\"".$bodyClass."\"" : "").">\n"; - } - } /* }}} */ - - protected function htmlEndPage() { /* {{{ */ - - $this->footNote(); - if(file_exists("../themes/".$this->theme."/HTMLFoot.html")) { - include("../themes/".$this->theme."/HTMLFoot.html"); - } else { - echo "\n\n"; - } - } /* }}} */ - - function footNote() { /* {{{ */ - if ($this->params['printdisclaimer']){ - echo "
".getMLText("disclaimer")."
"; - } - - if (isset($this->params['footnote']) && strlen((string)$this->params['footnote'])>0) { - echo "
".(string)$this->params['footnote']."
"; - } - - return; - } /* }}} */ - - function contentStart() { /* {{{ */ - } /* }}} */ - - function contentEnd() { /* {{{ */ - } /* }}} */ - - function globalBanner() { /* {{{ */ - echo "
\n"; - echo "
\n"; - echo "
\n"; - echo "
". - (strlen($this->params['sitename'])>0 ? $this->params['sitename'] : "SeedDMS"). - "
\n"; - echo "
 
\n". - "
\n"; - return; - } /* }}} */ - - function globalNavigation($folder=null) { /* {{{ */ - echo "
\n"; - echo "
\n"; - if(isset($this->params['user']) && $this->params['user']) { - echo "\n"; - echo "
\n"; - echo "
". - (strlen($this->params['sitename'])>0 ? $this->params['sitename'] : "SeedDMS"). - "
\n"; - echo "\n"; - echo "
".getMLText("signed_in_as")." ".htmlspecialchars($this->params['user']->getFullName()). - " (".getMLText("sign_out").").
\n"; - } - echo "
 
\n". - "
\n"; - return; - } /* }}} */ - - function pageNavigation($pageTitle, $pageType=null, $extra=null) { /* {{{ */ - global $settings; - - echo "
\n"; - // This spacer span is an awful hack, but it is the only way I know to - // get the spacer to match the mainheading content's size. - echo "".($settings->_titleDisplayHack ? $pageTitle : "")."\n"; - echo "
".$pageTitle."
\n"; - echo "
\n
\n"; - - if ($pageType!=null && strcasecmp($pageType, "noNav")) { - echo "
\n"; - switch ($pageType) { - case "view_folder": - $this->folderNavigationBar($extra); - break; - case "view_document": - $this->documentNavigationBar(); - break; - case "my_documents": - $this->myDocumentsNavigationBar(); - break; - case "my_account": - $this->accountNavigationBar(); - break; - case "admin_tools": - $this->adminToolsNavigationBar(); - break; - case "calendar"; - $this->calendarNavigationBar($extra); - break; - } - echo "
\n
\n"; - } - - return; - } /* }}} */ - - function folderNavigationBar($folder) { /* {{{ */ - if (!is_object($folder) || strcasecmp(get_class($folder), "SeedDMS_Core_Folder")) { - echo "
    \n"; - echo "
\n"; - return; - } - $accessMode = $folder->getAccessMode($this->params['user']); - $folderID = $folder->getID(); - echo "\n"; - return; - } /* }}} */ - - function documentNavigationBar() { /* {{{ */ - global $document; - - $accessMode = $document->getAccessMode($this->params['user']); - $docid=".php?documentid=" . $document->getID(); - - echo "\n"; - return; - } /* }}} */ - - function accountNavigationBar() { /* {{{ */ - echo "\n"; - return; - } /* }}} */ - - function myDocumentsNavigationBar() { /* {{{ */ - - echo "\n"; - return; - } /* }}} */ - - function adminToolsNavigationBar() { /* {{{ */ - echo "\n"; - return; - } /* }}} */ - - function calendarNavigationBar($d){ /* {{{ */ - $ds="&day=".$d[0]."&month=".$d[1]."&year=".$d[2]; - - echo "\n"; - return; - - } /* }}} */ - - function pageList($pageNumber, $totalPages, $baseURI, $params) { /* {{{ */ - - if (!is_numeric($pageNumber) || !is_numeric($totalPages) || $totalPages<2) { - return; - } - - // Construct the basic URI based on the $_GET array. One could use a - // regular expression to strip out the pg (page number) variable to - // achieve the same effect. This seems to be less haphazard though... - $resultsURI = $baseURI; - $first=true; - foreach ($params as $key=>$value) { - // Don't include the page number in the basic URI. This is added in - // during the list display loop. - if (!strcasecmp($key, "pg")) { - continue; - } - if (is_array($value)) { - foreach ($value as $subvalue) { - $resultsURI .= ($first ? "?" : "&").$key."%5B%5D=".$subvalue; - $first = false; - } - } - else { - $resultsURI .= ($first ? "?" : "&").$key."=".$value; - } - $first = false; - } - - echo "
"; - echo getMLText("results_page").": "; - for ($i = 1; $i <= $totalPages; $i++) { - if ($i == $pageNumber) echo "".$i." "; - else echo "".$i.""." "; - } - if ($totalPages>1) { - echo "".getMLText("all_pages").""." "; - } - echo "
"; - - return; - } /* }}} */ - - function contentContainer($content) { /* {{{ */ - echo "
\n"; - echo "
\n"; - echo "
\n"; - echo $content; - echo "
\n
\n
\n"; - return; - } /* }}} */ - - function contentContainerStart() { /* {{{ */ - - echo "
\n"; - echo "
\n"; - echo "
\n"; - return; - } /* }}} */ - - function contentContainerEnd() { /* {{{ */ - - echo "
\n
\n
\n"; - return; - } /* }}} */ - - function contentHeading($heading, $noescape=false) { /* {{{ */ - - if($noescape) - echo "
".$heading."
\n"; - else - echo "
".htmlspecialchars($heading)."
\n"; - return; - } /* }}} */ - - function contentSubHeading($heading, $first=false) { /* {{{ */ - - echo "
".htmlspecialchars($heading)."
\n"; - return; - } /* }}} */ - - function getMimeIcon($fileType) { /* {{{ */ - // for extension use LOWER CASE only - $icons = array(); - $icons["txt"] = "txt.png"; - $icons["text"] = "txt.png"; - $icons["doc"] = "word.png"; - $icons["dot"] = "word.png"; - $icons["docx"] = "word.png"; - $icons["dotx"] = "word.png"; - $icons["rtf"] = "document.png"; - $icons["xls"] = "excel.png"; - $icons["xlt"] = "excel.png"; - $icons["xlsx"] = "excel.png"; - $icons["xltx"] = "excel.png"; - $icons["ppt"] = "powerpoint.png"; - $icons["pot"] = "powerpoint.png"; - $icons["pptx"] = "powerpoint.png"; - $icons["potx"] = "powerpoint.png"; - $icons["exe"] = "binary.png"; - $icons["html"] = "html.png"; - $icons["htm"] = "html.png"; - $icons["gif"] = "image.png"; - $icons["jpg"] = "image.png"; - $icons["jpeg"] = "image.png"; - $icons["bmp"] = "image.png"; - $icons["png"] = "image.png"; - $icons["tif"] = "image.png"; - $icons["tiff"] = "image.png"; - $icons["log"] = "log.png"; - $icons["midi"] = "midi.png"; - $icons["pdf"] = "pdf.png"; - $icons["wav"] = "sound.png"; - $icons["mp3"] = "sound.png"; - $icons["c"] = "source_c.png"; - $icons["cpp"] = "source_cpp.png"; - $icons["h"] = "source_h.png"; - $icons["java"] = "source_java.png"; - $icons["py"] = "source_py.png"; - $icons["tar"] = "tar.png"; - $icons["gz"] = "gz.png"; - $icons["7z"] = "gz.png"; - $icons["bz"] = "gz.png"; - $icons["bz2"] = "gz.png"; - $icons["tgz"] = "gz.png"; - $icons["zip"] = "gz.png"; - $icons["rar"] = "gz.png"; - $icons["mpg"] = "video.png"; - $icons["avi"] = "video.png"; - $icons["tex"] = "tex.png"; - $icons["ods"] = "x-office-spreadsheet.png"; - $icons["ots"] = "x-office-spreadsheet.png"; - $icons["sxc"] = "x-office-spreadsheet.png"; - $icons["stc"] = "x-office-spreadsheet.png"; - $icons["odt"] = "x-office-document.png"; - $icons["ott"] = "x-office-document.png"; - $icons["sxw"] = "x-office-document.png"; - $icons["stw"] = "x-office-document.png"; - $icons["odp"] = "ooo_presentation.png"; - $icons["otp"] = "ooo_presentation.png"; - $icons["sxi"] = "ooo_presentation.png"; - $icons["sti"] = "ooo_presentation.png"; - $icons["odg"] = "ooo_drawing.png"; - $icons["otg"] = "ooo_drawing.png"; - $icons["sxd"] = "ooo_drawing.png"; - $icons["std"] = "ooo_drawing.png"; - $icons["odf"] = "ooo_formula.png"; - $icons["sxm"] = "ooo_formula.png"; - $icons["smf"] = "ooo_formula.png"; - $icons["mml"] = "ooo_formula.png"; - - $icons["default"] = "default.png"; - - $ext = strtolower(substr($fileType, 1)); - if (isset($icons[$ext])) { - return $icons[$ext]; - } - else { - return $icons["default"]; - } - } /* }}} */ - - function printDateChooser($defDate = -1, $varName) { /* {{{ */ - - if ($defDate == -1) - $defDate = mktime(); - $day = date("d", $defDate); - $month = date("m", $defDate); - $year = date("Y", $defDate); - - print " \n"; - print " \n"; - print ""; - } /* }}} */ - - function printSequenceChooser($objArr, $keepID = -1) { /* {{{ */ - if (count($objArr) > 0) { - $max = $objArr[count($objArr)-1]->getSequence() + 1; - $min = $objArr[0]->getSequence() - 1; - } - else { - $max = 1.0; - } - print ""; - } /* }}} */ - - function printDocumentChooser($formName) { /* {{{ */ -?> - -"; - print ""; - print "  "; - } /* }}} */ - - function printFolderChooser($formName, $accessMode, $exclude = -1, $default = false) { /* {{{ */ -?> - -getID() : "") ."\">"; - print "getName()) : "") ."\">"; - print "  "; - } /* }}} */ - - function printCategoryChooser($formName, $categories=array()) { /* {{{ */ -?> - -getId(); - $names[] = htmlspecialchars($cat->getName()); - } - } - print ""; - print ""; - print "  \"\""; - print "  "; - } /* }}} */ - - function printDropFolderChooser($formName, $dropfolderfile="") { /* {{{ */ -?> - -"; - print "  \"\""; - print "  "; - } /* }}} */ - - function printAttributeEditField($attrdef, $objvalue, $fieldname='attributes') { /* {{{ */ - if($valueset = $attrdef->getValueSetAsArray()) { - echo ""; - } else { - echo "getId()."]\" value=\"".htmlspecialchars($objvalue)."\" />"; - } - } /* }}} */ - - function getImgPath($img) { /* {{{ */ - - if ( is_file("../styles/$this->theme/images/$img") ) { - return "../styles/$this->theme/images/$img"; - } - else if ( is_file("../styles/$this->theme/img/$img") ) { - return "../styles/$this->theme/img/$img"; - } - return "../out/images/$img"; - } /* }}} */ - - function printImgPath($img) { /* {{{ */ - print $this->getImgPath($img); - } /* }}} */ - - function exitError($pagetitle,$error) { /* {{{ */ - - $this->htmlStartPage($pagetitle); - $this->globalNavigation(); - - print "
"; - print htmlspecialchars($error); - print "
"; - - $this->htmlEndPage(); - - add_log_line(" UI:exitError error=".$error." pagetitle=".$pagetitle); - - exit; - } /* }}} */ - - // navigation flag is used for items links (navigation or selection) - function printFoldersTree($accessMode, $exclude, $folderID, $currentFolderID=-1, $navigation=false) { /* {{{ */ - if ($this->params['expandfoldertree']==2){ - - // folder completely open - $is_open=true; - - }else if ($this->params['expandfoldertree']==1 && $folderID==$this->params['rootfolderid'] ){ - - $is_open=true; - - }else{ - // open the tree until the current folder - $is_open=false; - - if ($currentFolderID!=-1){ - - $currentFolder=$this->params['dms']->getFolder($currentFolderID); - - if (is_object($currentFolder)){ - - $parent=$currentFolder->getParent(); - - while (is_object($parent)){ - if ($parent->getID()==$folderID){ - $is_open=true; - break; - } - $parent=$parent->getParent(); - } - } - } - } - - $folder = $this->params['dms']->getFolder($folderID); - if (!is_object($folder)) return; - - $subFolders = $folder->getSubFolders(); - $subFolders = SeedDMS_Core_DMS::filterAccess($subFolders, $this->params['user'], M_READ); - - if ($folderID == $this->params['rootfolderid']) print "
"; - - $this->contentHeading("", true); - $this->contentContainerStart(); - $this->printFoldersTree(M_READ, -1, $this->params['rootfolderid'], $folderid, true); - $this->contentContainerEnd(); - - }else{ - - print ""; - - $this->contentHeading("", true); - $this->contentContainerStart(); - $this->contentContainerEnd(); - } - - print ""; - } /* }}} */ - - /** - * Output HTML Code for jumploader - * - * @param string $uploadurl URL where post data is send - * @param integer $folderid id of folder where document is saved - * @param integer $maxfiles maximum number of files allowed to upload - * @param array $fields list of post fields - */ - function printUploadApplet($uploadurl, $attributes, $maxfiles=0, $fields=array()){ /* {{{ */ -?> - - - - - - - - - - - - - - - - - - -
-

-
-

-

- diff --git a/views/blue/class.Calendar.php b/views/blue/class.Calendar.php deleted file mode 100644 index 66828e391..000000000 --- a/views/blue/class.Calendar.php +++ /dev/null @@ -1,335 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for Calendar view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_Calendar extends SeedDMS_Blue_Style { - - function generateCalendarArrays() { /* {{{ */ - $this->monthNames = array( getMLText("january"), - getMLText("february"), - getMLText("march"), - getMLText("april"), - getMLText("may"), - getMLText("june"), - getMLText("july"), - getMLText("august"), - getMLText("september"), - getMLText("october"), - getMLText("november"), - getMLText("december") ); - - $this->dayNamesLong = array( getMLText("sunday"), - getMLText("monday"), - getMLText("tuesday"), - getMLText("wednesday"), - getMLText("thursday"), - getMLText("friday"), - getMLText("saturday") ); - - $this->dayNames = array(); - foreach ( $this->dayNamesLong as $dn ){ - $this->dayNames[] = substr($dn,0,3); - } - } /* }}} */ - - // Calculate the number of days in a month, taking into account leap years. - function getDaysInMonth($month, $year) { /* {{{ */ - if ($month < 1 || $month > 12) return 0; - - $daysInMonth = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); - $d = $daysInMonth[$month - 1]; - - if ($month == 2){ - - if ($year%4 == 0){ - - if ($year%100 == 0){ - - if ($year%400 == 0) $d = 29; - } - else $d = 29; - } - } - return $d; - } /* }}} */ - - // Adjust dates to allow months > 12 and < 0 and day<0 or day>days of the month - function adjustDate(&$day,&$month,&$year) { /* {{{ */ - $d=getDate(mktime(12,0,0, $month, $day, $year)); - $month=$d["mon"]; - $day=$d["mday"]; - $year=$d["year"]; - } /* }}} */ - - // Generate the HTML for a given month - function getMonthHTML($month, $year) { /* {{{ */ - if (!isset($this->monthNames)) $this->generateCalendarArrays(); - if (!isset($this->dayNames)) $this->generateCalendarArrays(); - - $startDay = $this->firstdayofweek; - - $day=1; - $this->adjustDate($day,$month,$year); - - $daysInMonth = $this->getDaysInMonth($month, $year); - $date = getdate(mktime(12, 0, 0, $month, 1, $year)); - - $first = $date["wday"]; - $monthName = $this->monthNames[$month - 1]; - - $s = "\n"; - - $s .= "\n"; - $s .= "\n"; ; - $s .= "\n"; - - $s .= "\n"; - $s .= "\n"; - $s .= "\n"; - $s .= "\n"; - $s .= "\n"; - $s .= "\n"; - $s .= "\n"; - $s .= "\n"; - $s .= "\n"; - - // We need to work out what date to start at so that the first appears in the correct column - $d = $startDay + 1 - $first; - while ($d > 1) $d -= 7; - - // Make sure we know when today is, so that we can use a different CSS style - $today = getdate(time()); - - while ($d <= $daysInMonth) - { - $s .= "\n"; - - for ($i = 0; $i < 7; $i++){ - - $class = ($year == $today["year"] && $month == $today["mon"] && $d == $today["mday"]) ? "today" : ""; - $s .= "\n"; - $d++; - } - $s .= "\n"; - } - - $s .= "
".$monthName."
" . $this->dayNames[($startDay)%7] . "" . $this->dayNames[($startDay+1)%7] . "" . $this->dayNames[($startDay+2)%7] . "" . $this->dayNames[($startDay+3)%7] . "" . $this->dayNames[($startDay+4)%7] . "" . $this->dayNames[($startDay+5)%7] . "" . $this->dayNames[($startDay+6)%7] . "
"; - - if ($d > 0 && $d <= $daysInMonth){ - - $s .= "".$d.""; - } - else $s .= " "; - - $s .= "
\n"; - - return $s; - } /* }}} */ - - function printYearTable($year) { /* {{{ */ - print "\n"; - print ""; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "
" . $this->getMonthHTML(1 , $year) ."" . $this->getMonthHTML(2 , $year) ."" . $this->getMonthHTML(3 , $year) ."" . $this->getMonthHTML(4 , $year) ."
" . $this->getMonthHTML(5 , $year) ."" . $this->getMonthHTML(6 , $year) ."" . $this->getMonthHTML(7 , $year) ."" . $this->getMonthHTML(8 , $year) ."
" . $this->getMonthHTML(9 , $year) ."" . $this->getMonthHTML(10, $year) ."" . $this->getMonthHTML(11, $year) ."" . $this->getMonthHTML(12, $year) ."
\n"; - } /* }}} */ - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $mode = $this->params['mode']; - $year = $this->params['year']; - $month = $this->params['month']; - $day = $this->params['day']; - $this->firstdayofweek = $this->params['firstdayofweek']; - - $this->adjustDate($day,$month,$year); - - $this->htmlStartPage(getMLText("calendar")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("calendar"), "calendar",array($day,$month,$year)); - - if ($mode=="y"){ - - $this->contentHeading(getMLText("year_view")." : ".$year); - $this->contentContainerStart(); - - print "getImgPath("m.png")."\" border=0> "; - print "getImgPath("c.png")."\" border=0> "; - print "getImgPath("p.png")."\" border=0> "; - - $this->printYearTable($year); - $this->contentContainerEnd(); - - }else if ($mode=="m"){ - - if (!isset($this->dayNamesLong)) $this->generateCalendarArrays(); - if (!isset($this->monthNames)) $this->generateCalendarArrays(); - - $this->contentHeading(getMLText("month_view")." : ".$this->monthNames[$month-1]. " ".$year); - $this->contentContainerStart(); - - print "getImgPath("m.png")."\" border=0> "; - print "getImgPath("c.png")."\" border=0> "; - print "getImgPath("p.png")."\" border=0> "; - - $days = $this->getDaysInMonth($month, $year); - $today = getdate(time()); - - $events = getEventsInInterval(mktime(0,0,0, $month, 1, $year), mktime(23,59,59, $month, $days, $year)); - - echo "\n"; - - for ($i=1; $i<=$days; $i++){ - - // separate weeks - $date = getdate(mktime(12, 0, 0, $month, $i, $year)); - if (($date["wday"]==$this->firstdayofweek) && ($i!=1)) - echo "\n"; - - // highlight today - $class = ($year == $today["year"] && $month == $today["mon"] && $i == $today["mday"]) ? "todayHeader" : "header"; - - echo ""; - echo ""; - echo ""; - - if ($class=="todayHeader") $class="today"; - else $class=""; - - $xdate=mktime(0, 0, 0, $month, $i, $year); - foreach ($events as $event){ - if (($event["start"]<=$xdate)&&($event["stop"]>=$xdate)){ - - if (strlen($event['name']) > 25) $event['name'] = substr($event['name'], 0, 22) . "..."; - print ""; - }else{ - print ""; - } - } - - echo "\n"; - } - echo "
 
".$i."".$this->dayNamesLong[$date["wday"]]."".htmlspecialchars($event['name'])." 
\n"; - - $this->contentContainerEnd(); - - }else{ - - if (!isset($this->dayNamesLong)) $this->generateCalendarArrays(); - if (!isset($this->monthNames)) $this->generateCalendarArrays(); - - // get the week interval - TODO: $GET - $datestart=getdate(mktime(0,0,0,$month,$day,$year)); - while($datestart["wday"]!=$this->firstdayofweek){ - $datestart=getdate(mktime(0,0,0,$datestart["mon"],$datestart["mday"]-1,$datestart["year"])); - } - - $datestop=getdate(mktime(23,59,59,$month,$day,$year)); - if ($datestop["wday"]==$this->firstdayofweek){ - $datestop=getdate(mktime(23,59,59,$datestop["mon"],$datestop["mday"]+1,$datestop["year"])); - } - while($datestop["wday"]!=$this->firstdayofweek){ - $datestop=getdate(mktime(23,59,59,$datestop["mon"],$datestop["mday"]+1,$datestop["year"])); - } - $datestop=getdate(mktime(23,59,59,$datestop["mon"],$datestop["mday"]-1,$datestop["year"])); - - $starttime=mktime(0,0,0,$datestart["mon"],$datestart["mday"],$datestart["year"]); - $stoptime=mktime(23,59,59,$datestop["mon"],$datestop["mday"],$datestop["year"]); - - $today = getdate(time()); - $events = getEventsInInterval($starttime,$stoptime); - - $this->contentHeading(getMLText("week_view")." : ".getReadableDate(mktime(12, 0, 0, $month, $day, $year))); - $this->contentContainerStart(); - - print "getImgPath("m.png")."\" border=0> "; - print "getImgPath("c.png")."\" border=0> "; - print "getImgPath("p.png")."\" border=0> "; - - echo "\n"; - - for ($i=$starttime; $i<$stoptime; $i += 86400){ - - $date = getdate($i); - - // for daylight saving time TODO: could be better - if ( ($i!=$starttime) && ($prev_day==$date["mday"]) ){ - $i += 3600; - $date = getdate($i); - } - - // highlight today - $class = ($date["year"] == $today["year"] && $date["mon"] == $today["mon"] && $date["mday"] == $today["mday"]) ? "todayHeader" : "header"; - - echo ""; - echo ""; - echo ""; - - if ($class=="todayHeader") $class="today"; - else $class=""; - - foreach ($events as $event){ - if (($event["start"]<=$i)&&($event["stop"]>=$i)){ - print ""; - }else{ - print ""; - } - } - - echo "\n"; - - $prev_day=$date["mday"]; - } - echo "
".getReadableDate($i)."".$this->dayNamesLong[$date["wday"]]."".htmlspecialchars($event['name'])." 
\n"; - - $this->contentContainerEnd(); - } - - $this->htmlEndPage(); - - } /* }}} */ -} -?> diff --git a/views/blue/class.Categories.php b/views/blue/class.Categories.php deleted file mode 100644 index caf638c6d..000000000 --- a/views/blue/class.Categories.php +++ /dev/null @@ -1,152 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for Categories view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_Categories extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $categories = $this->params['categories']; - - $this->htmlStartPage(getMLText("admin_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); -?> - - -contentHeading(getMLText("global_document_categories")); - $this->contentContainerStart(); -?> - - - - - - - -getID()."\" style=\"display : none;\">"; -?> -
: - -    -
- - - - - - - - - - - -
-isUsed()) { -?> -
- - - - " type="submit"> -
- -

- -
- contentSubHeading("");?> -
: -
- - - -   - "> -
-
-
- - -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.CategoryChooser.php b/views/blue/class.CategoryChooser.php deleted file mode 100644 index fc9ea5d81..000000000 --- a/views/blue/class.CategoryChooser.php +++ /dev/null @@ -1,97 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for CategoryChooser view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_CategoryChooser extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $categories = $this->params['categories']; - $form = $this->params['form']; - $selcats = $this->params['selcats']; - - $this->htmlStartPage(getMLText("choose_target_category")); - $this->globalBanner(); - $this->pageNavigation(getMLText("choose_target_category")); -?> - - - -contentContainerStart(); - $selcatsarr = explode(',', $selcats); -?> - - - - - - - - - - -
: - -
- ">    -
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.ChangePassword.php b/views/blue/class.ChangePassword.php deleted file mode 100644 index b3d2ae78e..000000000 --- a/views/blue/class.ChangePassword.php +++ /dev/null @@ -1,74 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for ChangePassword view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_ChangePassword extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $referuri = $this->params['referuri']; - $hash = $this->params['hash']; - - $this->htmlStartPage(getMLText("change_password"), "login"); - $this->globalBanner(); - $this->pageNavigation(getMLText("change_password")); - $this->contentContainerStart(); -?> -
-"; - } - if ($hash) { - echo ""; - } -?> - - - - - - - - - - - - -
 
">
-
-contentContainerEnd(); ?> - -

-htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.CreateIndex.php b/views/blue/class.CreateIndex.php deleted file mode 100644 index 28cde01c4..000000000 --- a/views/blue/class.CreateIndex.php +++ /dev/null @@ -1,49 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for CreateIndex view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_CreateIndex extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $this->htmlStartPage(getMLText("admin_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText('admin_tools'), 'admin_tools'); - $this->contentHeading(getMLText("create_fulltext_index")); - $this->contentContainerStart(); - - echo '

'.getMLText('create_fulltext_index_warning').'

'; - echo ''.getMLText('confirm_create_fulltext_index').''; - - $this->contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> - diff --git a/views/blue/class.DefaultKeywords.php b/views/blue/class.DefaultKeywords.php deleted file mode 100644 index f0288db04..000000000 --- a/views/blue/class.DefaultKeywords.php +++ /dev/null @@ -1,200 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for DefaultKeywords view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_DefaultKeywords extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $categories = $this->params['categories']; - $selcategoryid = $this->params['selcategoryid']; - -$this->htmlStartPage(getMLText("admin_tools")); -$this->globalNavigation(); -$this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - -?> - -contentHeading(getMLText("global_default_keywords")); - $this->contentContainerStart(); -?> - - - - - - -getOwner(); - if ((!$user->isAdmin()) && ($owner->getID() != $user->getID())) continue; - - print " - -
: - -    - getID()."\" style=\"display : none;\">"; -?> - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - " type="submit" title=""> -
-
- contentSubHeading("");?> -
: -
- - - -   - "> -
-
- contentSubHeading("");?> -
: - getKeywordLists(); - if (count($lists) == 0) - print getMLText("no_default_keywords"); - else - foreach ($lists as $list) { -?> -
- - - "> - - "> - " style="border: 0px;"> - -
-
- - - "> - - " style="border: 0px;"> -
-
- -
"> - - - -
-
- - - -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.DocumentAccess.php b/views/blue/class.DocumentAccess.php deleted file mode 100644 index 11977c24b..000000000 --- a/views/blue/class.DocumentAccess.php +++ /dev/null @@ -1,283 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for DocumentAccess view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_DocumentAccess extends SeedDMS_Blue_Style { - - function printAccessModeSelection($defMode) { /* {{{ */ - print "\n"; - } /* }}} */ - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $document = $this->params['document']; - $folder = $this->params['folder']; - $allUsers = $this->params['allusers']; - $allGroups = $this->params['allgroups']; - - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - -?> - - - -contentHeading(getMLText("edit_document_access")); - $this->contentContainerStart(); - - if ($user->isAdmin()) { - - $this->contentSubHeading(getMLText("set_owner")); -?> -
- - - - : - "> -
-contentSubHeading(getMLText("access_inheritance")); - - if ($document->inheritsAccess()) { - printMLText("inherits_access_msg"); -?> -

-

- - - - - "> -
-
- - - - - "> -
-

-contentContainerEnd(); - $this->htmlEndPage(); - return; -} -?> -
- - - - "> -
-getAccessList(); - - $this->contentSubHeading(getMLText("default_access")); -?> -
- - - - printAccessModeSelection($document->getDefaultAccess()); ?> - "> -
- -contentSubHeading(getMLText("edit_existing_access")); - - /* memorїze users with access rights */ - $memusers = array(); - /* memorize groups with access rights */ - $memgroups = array(); - if (count($accessList["users"]) != 0 || count($accessList["groups"]) != 0) { - - print ""; - - foreach ($accessList["users"] as $userAccess) { - $userObj = $userAccess->getUser(); - $memusers[] = $userObj->getID(); - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - } - - foreach ($accessList["groups"] as $groupAccess) { - $groupObj = $groupAccess->getGroup(); - $memgroups[] = $groupObj->getID(); - $mode = $groupAccess->getMode(); - print ""; - print ""; - print ""; - print ""; - print "\n"; - print "\n"; - print ""; - print "\n"; - print "\n"; - } - - print "
". htmlspecialchars($userObj->getFullName()) . "
\n"; - $this->printAccessModeSelection($userAccess->getMode()); - print "\n"; - echo createHiddenFieldWithKey('documentaccess')."\n"; - print "getId()."\">\n"; - print "\n"; - print "getID()."\">\n"; - print "".getMLText("save")." "; - print "
\n"; - echo createHiddenFieldWithKey('documentaccess')."\n"; - print "getId()."\">\n"; - print "\n"; - print "getID()."\">\n"; - print "".getMLText("delete")." "; - print "
". htmlspecialchars($groupObj->getName()) . "
"; - $this->printAccessModeSelection($groupAccess->getMode()); - print "\n"; - echo createHiddenFieldWithKey('documentaccess')."\n"; - print "getId()."\">"; - print ""; - print "getID()."\">"; - print "".getMLText("save")." "; - print "\n"; - print "
\n"; - echo createHiddenFieldWithKey('documentaccess')."\n"; - print "getId()."\">\n"; - print "\n"; - print "getID()."\">\n"; - print "".getMLText("delete")." "; - print "
"; - print "

"; - } -?> -
- - - - - - - - - - - - - - - - - - - -
: - -
: - -
: -printAccessModeSelection(M_READ); -?> -
">
-
- -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.DocumentChooser.php b/views/blue/class.DocumentChooser.php deleted file mode 100644 index ee807dcdb..000000000 --- a/views/blue/class.DocumentChooser.php +++ /dev/null @@ -1,136 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for DocumentChooser view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_DocumentChooser extends SeedDMS_Blue_Style { - var $user; - var $form; - - function printTree($path, $level = 0) { /* {{{ */ - $folder = $path[$level]; - $subFolders = SeedDMS_Core_DMS::filterAccess($folder->getSubFolders(), $this->user, M_READ); - $documents = SeedDMS_Core_DMS::filterAccess($folder->getDocuments(), $this->user, M_READ); - - if ($level+1 < count($path)) - $nextFolderID = $path[$level+1]->getID(); - else - $nextFolderID = -1; - - if ($level == 0) { - print "
    \n"; - } - print "
  • \n"; - print "printImgPath("minus.png"); - else if (count($subFolders) + count($documents) > 0) $this->printImgPath("minus.png"); - else $this->printImgPath("blank.png"); - print "\" border=0>\n"; - if ($folder->getAccessMode($this->user) >= M_READ) { - print "getImgPath("folder_opened.gif")."\" border=0>".htmlspecialchars($folder->getName())."\n"; - } - else - print "getImgPath("folder_opened.gif")."\" width=18 height=18 border=0>".htmlspecialchars($folder->getName())."\n"; - print "
  • \n"; - - print "\n"; - if ($level == 0) { - print "
\n"; - } - - } /* }}} */ - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $this->user = $this->params['user']; - $folder = $this->params['folder']; - $this->form = $this->params['form']; - - $this->htmlStartPage(getMLText("choose_target_document")); - $this->globalBanner(); - $this->pageNavigation(getMLText("choose_target_document")); -?> - - - -"; - $this->contentContainerStart(); - echo "
"; - $this->contentContainerEnd(); - $this->contentContainerStart(); - $this->printTree($folder->getPath()); - $this->contentContainerEnd(); -?> - - - -htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.DocumentNotify.php b/views/blue/class.DocumentNotify.php deleted file mode 100644 index 004c67d47..000000000 --- a/views/blue/class.DocumentNotify.php +++ /dev/null @@ -1,154 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for DocumentNotify view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_DocumentNotify extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - $sortusersinlist = $this->params['sortusersinlist']; - - $notifyList = $document->getNotifyList(); - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - -?> - - -contentHeading(getMLText("edit_existing_notify")); - $this->contentContainerStart(); - - $userNotifyIDs = array(); - $groupNotifyIDs = array(); - - print "\n"; - if ((count($notifyList["users"]) == 0) && (count($notifyList["groups"]) == 0)) { - print ""; - } - else { - foreach ($notifyList["users"] as $userNotify) { - print ""; - print ""; - print ""; - if ($user->isAdmin() || $user->getID() == $userNotify->getID()) { - print ""; - }else print ""; - print ""; - $userNotifyIDs[] = $userNotify->getID(); - } - foreach ($notifyList["groups"] as $groupNotify) { - print ""; - print ""; - print ""; - if ($user->isAdmin() || $groupNotify->isMember($user,true)) { - print ""; - }else print ""; - print ""; - $groupNotifyIDs[] = $groupNotify->getID(); - } - } - print "
".getMLText("empty_notify_list")."
" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . "getID() . "&action=delnotify&userid=".$userNotify->getID()."\">".getMLText("delete")."
" . htmlspecialchars($groupNotify->getName()) . "getID() . "&action=delnotify&groupid=".$groupNotify->getID()."\">".getMLText("delete")."
\n"; - -?> -
- -
- - - - - - - - - - - - - - -
: - -
: - -
">
-
- -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.DocumentVersionDetail.php b/views/blue/class.DocumentVersionDetail.php deleted file mode 100644 index 64fef68c5..000000000 --- a/views/blue/class.DocumentVersionDetail.php +++ /dev/null @@ -1,260 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for DocumentVersionDetail view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - $version = $this->params['version']; - $viewonlinefiletypes = $this->params['viewonlinefiletypes']; - $enableversionmodification = $this->params['enableversionmodification']; - - $latestContent = $document->getLatestContent(); - $status = $version->getStatus(); - $reviewStatus = $version->getReviewStatus(); - $approvalStatus = $version->getApprovalStatus(); - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - $this->contentHeading(getMLText("document_infos")); - $this->contentContainerStart(); - -?> - - - - - - - - - - - - - - - - - -isLocked()) { - $lockingUser = $document->getLockingUser(); -?> - - - - - - -
: -getOwner(); - print "getEmail()."\">".htmlspecialchars($owner->getFullName()).""; -?> -
:getComment());?>
:getDate()); ?>
:getKeywords());?>
: $lockingUser->getEmail(), "username" => htmlspecialchars($lockingUser->getFullName())));?>
-contentContainerEnd(); - - // verify if file exists - $file_exists=file_exists($dms->contentDir . $version->getPath()); - - $this->contentHeading(getMLText("details_version", array ("version" => $version->getVersion()))); - $this->contentContainerStart(); - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - print "\n"; - print "\n"; - print "\n"; - - print "\n"; - - print ""; - print ""; - print ""; - print "\n
".getMLText("version")."".getMLText("file")."".getMLText("comment")."".getMLText("status")."
".$version->getVersion()."
    \n"; - print "
  • ".$version->getOriginalFileName()."
  • \n"; - - if ($file_exists) print "
  • ". formatted_size(filesize($dms->contentDir . $version->getPath())) ." ".htmlspecialchars($version->getMimeType())."
  • "; - else print "
  • ".getMLText("document_deleted")."
  • "; - - $updatingUser = $version->getUser(); - print "
  • ".getMLText("uploaded_by")." getEmail()."\">".htmlspecialchars($updatingUser->getFullName())."
  • "; - print "
  • ".getLongReadableDate($version->getDate())."
  • "; - print "
".htmlspecialchars($version->getComment())."".getOverallStatusText($status["status"]).""; - - //if (($document->getAccessMode($user) >= M_READWRITE)) { - print ""; - } - else { - print " "; - } - - echo "
\n"; - - - print "\n"; - - if (is_array($reviewStatus) && count($reviewStatus)>0) { - - print "\n"; - - print "\n"; - print "\n"; - print "\n"; - print ""; - print "\n"; - print "\n"; - - foreach ($reviewStatus as $r) { - $required = null; - switch ($r["type"]) { - case 0: // Reviewer is an individual. - $required = $dms->getUser($r["required"]); - if (!is_object($required)) { - $reqName = getMLText("unknown_user")." '".$r["required"]."'"; - } - else { - $reqName = htmlspecialchars($required->getFullName()); - } - break; - case 1: // Reviewer is a group. - $required = $dms->getGroup($r["required"]); - if (!is_object($required)) { - $reqName = getMLText("unknown_group")." '".$r["required"]."'"; - } - else { - $reqName = htmlspecialchars($required->getName()); - } - break; - } - print "\n"; - print "\n"; - print ""; - print "\n"; - print "\n"; - print "\n"; - } - } - - if (is_array($approvalStatus) && count($approvalStatus)>0) { - - print "\n"; - - print "\n"; - print "\n"; - print "\n"; - print ""; - print "\n"; - print "\n"; - - foreach ($approvalStatus as $a) { - $required = null; - switch ($a["type"]) { - case 0: // Approver is an individual. - $required = $dms->getUser($a["required"]); - if (!is_object($required)) { - $reqName = getMLText("unknown_user")." '".$r["required"]."'"; - } - else { - $reqName = htmlspecialchars($required->getFullName()); - } - break; - case 1: // Approver is a group. - $required = $dms->getGroup($a["required"]); - if (!is_object($required)) { - $reqName = getMLText("unknown_group")." '".$r["required"]."'"; - } - else { - $reqName = htmlspecialchars($required->getName()); - } - break; - } - print "\n"; - print "\n"; - print ""; - print "\n"; - print "\n"; - print "\n"; - } - } - - print "
\n"; - $this->contentSubHeading(getMLText("reviewers")); - print "
".getMLText("name")."".getMLText("last_update")."".getMLText("comment")."".getMLText("status")."
".$reqName."
  • ".$r["date"]."
  • "; - $updateUser = $dms->getUser($r["userID"]); - print "
  • ".(is_object($updateUser) ? $updateUser->getFullName() : "unknown user id '".$r["userID"]."'")."
".$r["comment"]."".getReviewStatusText($r["status"])."
\n"; - $this->contentSubHeading(getMLText("approvers")); - print "
".getMLText("name")."".getMLText("last_update")."".getMLText("comment")."".getMLText("status")."
".$reqName."
  • ".$a["date"]."
  • "; - $updateUser = $dms->getUser($a["userID"]); - print "
  • ".(is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()) : "unknown user id '".$a["userID"]."'")."
".$a["comment"]."".getApprovalStatusText($a["status"])."
\n"; - - $this->contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.DropFolderChooser.php b/views/blue/class.DropFolderChooser.php deleted file mode 100644 index 295a10e14..000000000 --- a/views/blue/class.DropFolderChooser.php +++ /dev/null @@ -1,75 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for CategoryChooser view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_DropFolderChooser extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $dropfolderfile = $this->params['dropfolderfile']; - $form = $this->params['form']; - $dropfolderdir = $this->params['dropfolderdir']; - - $this->htmlStartPage(getMLText("choose_target_file")); - $this->globalBanner(); - $this->pageNavigation(getMLText("choose_target_file")); -?> - - -contentContainerStart(); - - $dir = $dropfolderdir.'/'.$user->getLogin(); - /* Check if we are still looking in the configured directory and - * not somewhere else, e.g. if the login was '../test' - */ - if(dirname($dir) == $dropfolderdir) { - if(is_dir($dir)) { - $d = dir($dir); - echo "\n"; - while (false !== ($entry = $d->read())) { - if($entry != '..' && $entry != '.') { - if(!is_dir($entry)) { - echo "\n"; - } - } - } - echo "
".$entry."".SeedDMS_Core_File::format_filesize(filesize($dir.'/'.$entry))."
\n"; - } - } - - $this->contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.EditAttributes.php b/views/blue/class.EditAttributes.php deleted file mode 100644 index a2075bc69..000000000 --- a/views/blue/class.EditAttributes.php +++ /dev/null @@ -1,76 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for EditAttributes view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_EditAttributes extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - $version = $this->params['version']; - $attrdefs = $this->params['attrdefs']; - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - - $this->contentHeading(getMLText("edit_attributes")); - $this->contentContainerStart(); -?> -
- - - - - - - - - - - - - -
getName()); ?>printAttributeEditField($attrdef, $version->getAttributeValue($attrdef)) ?>

">
-
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.EditComment.php b/views/blue/class.EditComment.php deleted file mode 100644 index 60a77f5ad..000000000 --- a/views/blue/class.EditComment.php +++ /dev/null @@ -1,90 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for EditComment view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_EditComment extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - $version = $this->params['version']; - $strictformcheck = $this->params['strictformcheck']; - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - -?> - - -contentHeading(getMLText("edit_comment")); - $this->contentContainerStart(); -?> -
- - - - - - - - - - - -
:

">
-
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.EditDocument.php b/views/blue/class.EditDocument.php deleted file mode 100644 index c0058739b..000000000 --- a/views/blue/class.EditDocument.php +++ /dev/null @@ -1,132 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for EditDocument view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_EditDocument extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - $attrdefs = $this->params['attrdefs']; - $strictformcheck = $this->params['strictformcheck']; - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - -?> - - -contentHeading(getMLText("edit_document_props")); - $this->contentContainerStart(); -?> -
- - - - - - - - - - - - - - - - - - -getAccessMode($user) > M_READ) { - print ""; - print ""; - print ""; - } - if($attrdefs) { - foreach($attrdefs as $attrdef) { -?> - - - - - - - - -
:
:
: -
- - -
:printCategoryChooser("form1", $document->getCategories());?>
" . getMLText("sequence") . ":"; - $this->printSequenceChooser($folder->getDocuments(), $document->getID()); - print "
getName()); ?>printAttributeEditField($attrdef, $document->getAttributeValue($attrdef)) ?>

">
-
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.EditEvent.php b/views/blue/class.EditEvent.php deleted file mode 100644 index a5b13c8a0..000000000 --- a/views/blue/class.EditEvent.php +++ /dev/null @@ -1,101 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for EditEvent view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_EditEvent extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $event = $this->params['event']; - $strictformcheck = $this->params['strictformcheck']; - - $this->htmlStartPage(getMLText("calendar")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("calendar"), "calendar"); - - $this->contentHeading(getMLText("edit_event")); - $this->contentContainerStart(); -?> - - -
- - - "> - - - - - - - - - - - - - - - - - - - - - -
:printDateChooser($event["start"], "from");?>
:printDateChooser($event["stop"], "to");?>
:" size="60">
:

">
-
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.EditFolder.php b/views/blue/class.EditFolder.php deleted file mode 100644 index 142389903..000000000 --- a/views/blue/class.EditFolder.php +++ /dev/null @@ -1,116 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for EditFolder view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_EditFolder extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $attrdefs = $this->params['attrdefs']; - $rootfolderid = $this->params['rootfolderid']; - $strictformcheck = $this->params['strictformcheck']; - - $this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true), "view_folder", $folder); -?> - - - -contentHeading(getMLText("edit_folder_props")); - $this->contentContainerStart(); -?> -
- - - - - - - - - - - -getID() == $rootfolderid) ? false : $folder->getParent(); - if ($parent && $parent->getAccessMode($user) > M_READ) { - print ""; - print ""; - print "\n"; - } - - if($attrdefs) { - foreach($attrdefs as $attrdef) { -?> - - - - - - - - -
:
:
" . getMLText("sequence") . ":"; - $this->printSequenceChooser($parent->getSubFolders(), $folder->getID()); - print "
getName()); ?>printAttributeEditField($attrdef, $folder->getAttributeValue($attrdef)) ?>
">
-
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.EditUserData.php b/views/blue/class.EditUserData.php deleted file mode 100644 index 8118cdf45..000000000 --- a/views/blue/class.EditUserData.php +++ /dev/null @@ -1,153 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for EditUserData view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_EditUserData extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $enableuserimage = $this->params['enableuserimage']; - $passwordstrength = $this->params['passwordstrength']; - $httproot = $this->params['httproot']; - - $this->htmlStartPage(getMLText("edit_user_details")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("my_account"), "my_account"); - -?> - - - -contentHeading(getMLText("edit_user_details")); - $this->contentContainerStart(); -?> -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
:
:
 
:
:
:
:
: -hasImage()) - print ""; - else printMLText("no_user_image"); -?> -
:
: - -
: - -
">
-
- -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.ErrorDlg.php b/views/blue/class.ErrorDlg.php deleted file mode 100644 index 5956a3b9e..000000000 --- a/views/blue/class.ErrorDlg.php +++ /dev/null @@ -1,38 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for ErrorDlg view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_ErrorDlg extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - - } /* }}} */ -} -?> diff --git a/views/blue/class.FolderAccess.php b/views/blue/class.FolderAccess.php deleted file mode 100644 index 92d746c52..000000000 --- a/views/blue/class.FolderAccess.php +++ /dev/null @@ -1,275 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for FolderAccess view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_FolderAccess extends SeedDMS_Blue_Style { - function printAccessModeSelection($defMode) { /* {{{ */ - print "\n"; - } /* }}} */ - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $allUsers = $this->params['allusers']; - $allGroups = $this->params['allgroups']; - $rootfolderid = $this->params['rootfolderid']; - - $this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true), "view_folder", $folder); -?> - - - -contentHeading(getMLText("edit_folder_access")); - $this->contentContainerStart(); - - if ($user->isAdmin()) { - - $this->contentSubHeading(getMLText("set_owner")); -?> -
- - - - : - "> -
- getID() != $rootfolderid && $folder->getParent()){ - - $this->contentSubHeading(getMLText("access_inheritance")); - - if ($folder->inheritsAccess()) { - printMLText("inherits_access_msg"); -?> -

-

- - - - - "> -
-
- - - - - "> -
-

-contentContainerEnd(); - $this->htmlEndPage(); - return; - } -?> -
- - - - "> -
-getAccessList(); - - $this->contentSubHeading(getMLText("default_access")); -?> -
- - - - printAccessModeSelection($folder->getDefaultAccess()); ?> - "> -
- -contentSubHeading(getMLText("edit_existing_access")); - - if ((count($accessList["users"]) != 0) || (count($accessList["groups"]) != 0)) { - - print ""; - - foreach ($accessList["users"] as $userAccess) { - $userObj = $userAccess->getUser(); - print "\n"; - print "\n"; - print "\n"; - print "\n"; - echo createHiddenFieldWithKey('folderaccess')."\n"; - print "getID()."\">\n"; - print "\n"; - print "getID()."\">\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - } - - foreach ($accessList["groups"] as $groupAccess) { - $groupObj = $groupAccess->getGroup(); - $mode = $groupAccess->getMode(); - print ""; - print ""; - print ""; - print ""; - echo createHiddenFieldWithKey('folderaccess')."\n"; - print "getID()."\">"; - print ""; - print "getID()."\">"; - print "\n"; - print "\n"; - print ""; - print "\n"; - print "\n"; - print ""; - print "\n"; - } - - print "
". htmlspecialchars($userObj->getFullName()) . "
\n"; - $this->printAccessModeSelection($userAccess->getMode()); - print "\n"; - print "".getMLText("save")." "; - print "\n"; - print "
\n"; - echo createHiddenFieldWithKey('folderaccess')."\n"; - print "getID()."\">\n"; - print "\n"; - print "getID()."\">\n"; - print "".getMLText("delete")." "; - print "
\n"; - print "
". htmlspecialchars($groupObj->getName()) . "
"; - $this->printAccessModeSelection($groupAccess->getMode()); - print "\n"; - print "".getMLText("save")." "; - print "
\n"; - echo createHiddenFieldWithKey('folderaccess')."\n"; - print "getID()."\">\n"; - print "\n"; - print "getID()."\">\n"; - print "".getMLText("delete")." "; - print "

"; - } -?> -
- - - - - - - - - - - - - - - - - - - -
: - -
: - -
: -printAccessModeSelection(M_READ); -?> -
">
-
- -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.FolderChooser.php b/views/blue/class.FolderChooser.php deleted file mode 100644 index d37073368..000000000 --- a/views/blue/class.FolderChooser.php +++ /dev/null @@ -1,82 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for FolderChooser view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_FolderChooser extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $mode = $this->params['mode']; - $exclude = $this->params['exclude']; - $form = $this->params['form']; - $rootfolderid = $this->params['rootfolderid']; - - $this->htmlStartPage(getMLText("choose_target_folder")); - $this->globalBanner(); - $this->pageNavigation(getMLText("choose_target_folder")); -?> - - - - -contentContainerStart(); - $this->printFoldersTree($mode, $exclude, $rootfolderid); - $this->contentContainerEnd(); -?> - - - - -htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.FolderNotify.php b/views/blue/class.FolderNotify.php deleted file mode 100644 index 9ce2da441..000000000 --- a/views/blue/class.FolderNotify.php +++ /dev/null @@ -1,171 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for FolderNotify view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_FolderNotify extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $allUsers = $this->params['allusers']; - $allGroups = $this->params['allgroups']; - $strictformcheck = $this->params['strictformcheck']; - - $notifyList = $folder->getNotifyList(); - - $this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true), "view_folder", $folder); - -?> - - - -contentHeading(getMLText("edit_existing_notify")); - $this->contentContainerStart(); - - $userNotifyIDs = array(); - $groupNotifyIDs = array(); - - print "\n"; - if (empty($notifyList["users"]) && empty($notifyList["groups"])) { - print ""; - } - else { - foreach ($notifyList["users"] as $userNotify) { - print ""; - print ""; - print ""; - if ($user->isAdmin() || $user->getID() == $userNotify->getID()) { - print ""; - }else print ""; - print ""; - $userNotifyIDs[] = $userNotify->getID(); - } - - foreach ($notifyList["groups"] as $groupNotify) { - print ""; - print ""; - print ""; - if ($user->isAdmin() || $groupNotify->isMember($user,true)) { - print ""; - }else print ""; - print ""; - $groupNotifyIDs[] = $groupNotify->getID(); - } - } - print "
".getMLText("empty_notify_list")."
" . htmlspecialchars($userNotify->getFullName()) . ""; - print "
\n"; - echo createHiddenFieldWithKey('foldernotify')."\n"; - print "getID()."\">\n"; - print "\n"; - print "getID()."\">\n"; - print "".getMLText("delete")." "; - print "
\n"; - print "
" . htmlspecialchars($groupNotify->getName()) . ""; - print "
\n"; - echo createHiddenFieldWithKey('foldernotify')."\n"; - print "getID()."\">\n"; - print "\n"; - print "getID()."\">\n"; - print "".getMLText("delete")." "; - print "
\n"; - print "
\n"; - -?> -
-
- - - - - - - - - - - - - - - -
: - -
: - -
">
-
- -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.ForcePasswordChange.php b/views/blue/class.ForcePasswordChange.php deleted file mode 100644 index eefca407c..000000000 --- a/views/blue/class.ForcePasswordChange.php +++ /dev/null @@ -1,78 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for ForcePasswordChange view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_ForcePasswordChange extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $passwordstrength = $this->params['passwordstrength']; - - $this->htmlStartPage(getMLText("sign_in"), "login"); - $this->globalBanner(); - echo "

".getMLText('password_expiration')."

"; - echo "

".getMLText('password_expiration_text')."

"; - $this->contentContainerStart(); -?> -
- - - - - - - - - - - - - - - - -
:
:
 
:
">
- - - -
- -contentContainerEnd(); - $tmpfoot = array(); - $tmpfoot[] = "" . getMLText("logout") . "\n"; - print "

"; - print implode(' | ', $tmpfoot); - print "

\n"; - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.GroupMgr.php b/views/blue/class.GroupMgr.php deleted file mode 100644 index adcd7d287..000000000 --- a/views/blue/class.GroupMgr.php +++ /dev/null @@ -1,243 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for GroupMgr view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_GroupMgr extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $selgroup = $this->params['selgroup']; - $allUsers = $this->params['allusers']; - $allGroups = $this->params['allgroups']; - $strictformcheck = $this->params['strictformcheck']; - - $this->htmlStartPage(getMLText("admin_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - -?> - -contentHeading(getMLText("group_management")); - $this->contentContainerStart(); -?> - - - - - - - -getID()."\" style=\"display : none;\">"; - $this->contentSubHeading(getMLText("group")." : ".htmlspecialchars($group->getName())); -?> - - contentSubHeading(getMLText("edit_group"));?> - - - - -
- -: -   -
- - - - - - - - - - - -
:
:
">
- -contentSubHeading(getMLText("group_members")); -?> - -getUsers(); - if (count($members) == 0) - print ""; - else { - - foreach ($members as $member) { - - print ""; - print ""; - print ""; - print ""; - print ""; - } - } -?> -
".getMLText("no_group_members")."
" . htmlspecialchars($member->getFullName()) . "" . ($group->isMember($member,true)?getMLText("manager"):" ") . "
    "; - print "
  • getID()."\" />getID()."\" />".createHiddenFieldWithKey('rmmember')."
    "; - print "
  • getID()."\" />getID()."\" />".createHiddenFieldWithKey('tmanager')."
    "; - print "
- -contentSubHeading(getMLText("add_member")); -?> - -
- - - - - - - - - -
- - - - - "> -
-
- - - - - - - - -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.GroupView.php b/views/blue/class.GroupView.php deleted file mode 100644 index ed3c3cd76..000000000 --- a/views/blue/class.GroupView.php +++ /dev/null @@ -1,103 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for GroupView view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_GroupView extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $allGroups = $this->params['allgroups']; - $allUsers = $this->params['allusers']; - - $this->htmlStartPage(getMLText("my_account")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("my_account"), "my_account"); - - $this->contentHeading(getMLText("groups")); - $this->contentContainerStart(); - - echo "
    \n"; - - foreach ($allGroups as $group){ - - $members = $group->getUsers(); - $managers = $group->getManagers(); - $ismanager = false; /* set to true if current user is manager */ - - echo "
  • ".htmlspecialchars($group->getName()); - if($group->getComment()) - echo " : ".htmlspecialchars($group->getComment()); - foreach($managers as $manager) - if($manager->getId() == $user->getId()) { - echo " : ".getMLText("manager_of_group"); - $ismanager = true; - } - echo "
  • "; - - echo "
      \n"; - $memberids = array(); - foreach ($members as $member) { - $memberids[] = $member->getId(); - - echo "
    • ".htmlspecialchars($member->getFullName()); - if ($member->getEmail()!="") - echo " (getEmail())."\">".htmlspecialchars($member->getEmail()).")"; - foreach($managers as $manager) - if($manager->getId() == $member->getId()) - echo ", ".getMLText("manager"); - if($ismanager) { - echo ' '.getMLText("rm_user").''; - } - echo "
    • "; - } - if($ismanager) { - echo "
    • ".getMLText("add_user_to_group").":"; - echo "
      "; - echo "getId()."\" />"; - echo ""; - echo "
      "; - echo "
    • "; - } - echo "
    \n"; - } - echo "
\n"; - - $this->contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.Help.php b/views/blue/class.Help.php deleted file mode 100644 index 232607c57..000000000 --- a/views/blue/class.Help.php +++ /dev/null @@ -1,50 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for Help view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_Help extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - - $this->htmlStartPage(getMLText("help")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("help"), ""); - - $this->contentContainerStart(); - - readfile("../languages/".$user->getLanguage()."/help.htm"); - - $this->contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.IndexInfo.php b/views/blue/class.IndexInfo.php deleted file mode 100644 index 0350105a5..000000000 --- a/views/blue/class.IndexInfo.php +++ /dev/null @@ -1,68 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for IndexInfo view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_IndexInfo extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $luceneclassdir = $this->params['luceneclassdir']; - $lucenedir = $this->params['lucenedir']; - $index = $this->params['index']; - - $this->htmlStartPage(getMLText('fulltext_info')); - $this->globalNavigation(); - $this->pageNavigation(getMLText('fulltext_info')); - $this->contentContainerStart(); - - $numDocs = $index->count(); - echo "
";
-		for ($id = 0; $id < $numDocs; $id++) {
-			if (!$index->isDeleted($id)) {
-				$hit = $index->getDocument($id);
-				echo $hit->document_id.": ".htmlspecialchars($hit->title)."\n";
-			}
-		}
-		echo "
"; - - $terms = $index->terms(); - echo "

".count($terms)." Terms

"; - echo "
";
-		foreach($terms as $term) {
-			echo htmlspecialchars($term->field).":".htmlspecialchars($term->text)."\n";
-		}
-		echo "
"; - - $this->contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.Indexer.php b/views/blue/class.Indexer.php deleted file mode 100644 index f65836f16..000000000 --- a/views/blue/class.Indexer.php +++ /dev/null @@ -1,97 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for Indexer view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_Indexer extends SeedDMS_Blue_Style { - - function tree($dms, $index, $folder, $indent='') { /* {{{ */ - echo $indent."D ".htmlspecialchars($folder->getName())."\n"; - $subfolders = $folder->getSubFolders(); - foreach($subfolders as $subfolder) { - $this->tree($dms, $index, $subfolder, $indent.' '); - } - $documents = $folder->getDocuments(); - foreach($documents as $document) { - echo $indent." ".$document->getId().":".htmlspecialchars($document->getName())." "; - /* If the document wasn't indexed before then just add it */ - if(!($hits = $index->find('document_id:'.$document->getId()))) { - $index->addDocument(new SeedDMS_Lucene_IndexedDocument($dms, $document, $this->converters ? $this->converters : null)); - echo "(document added)"; - } else { - $hit = $hits[0]; - /* Check if the attribute created is set or has a value older - * than the lasted content. Documents without such an attribute - * where added when a new document was added to the dms. In such - * a case the document content wasn't indexed. - */ - try { - $created = (int) $hit->getDocument()->getFieldValue('created'); - } catch (Zend_Search_Lucene_Exception $e) { - $created = 0; - } - $content = $document->getLatestContent(); - if($created >= $content->getDate()) { - echo $indent."(document unchanged)"; - } else { - if($index->delete($hit->id)) { - $index->addDocument(new SeedDMS_Lucene_IndexedDocument($dms, $document, $this->converters ? $this->converters : null)); - } - echo $indent."(document updated)"; - } - } - echo "\n"; - } - } /* }}} */ - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $index = $this->params['index']; - $recreate = $this->params['recreate']; - $folder = $this->params['folder']; - $this->converters = $this->params['converters']; - - $this->htmlStartPage(getMLText("admin_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText('admin_tools'), 'admin_tools'); - $this->contentHeading(getMLText("update_fulltext_index")); - $this->contentContainerStart(); - - echo "
";
-		$this->tree($dms, $index, $folder);
-		echo "
"; - - $index->commit(); - - $this->contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.Info.php b/views/blue/class.Info.php deleted file mode 100644 index ee4150009..000000000 --- a/views/blue/class.Info.php +++ /dev/null @@ -1,45 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for Info view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_Info extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $version = $this->params['version']; - - $this->htmlStartPage($version->banner()); - $this->globalNavigation(); - $this->pageNavigation($version->banner()); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.KeywordChooser.php b/views/blue/class.KeywordChooser.php deleted file mode 100644 index 126e9d4b9..000000000 --- a/views/blue/class.KeywordChooser.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for KeywordChooser view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_KeywordChooser extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $categories = $this->params['categories']; - $target = $this->params['form']; - - $this->htmlStartPage(getMLText("use_default_keywords")); -?> - - -
-contentHeading(getMLText("use_default_keywords")); - $this->contentContainerStart(); -?> - - - - - - - - - - - - - - - - - -getOwner(); - if (!$owner->isAdmin()) - continue; -?> - - - - - - - - - - - - -getOwner(); - if ($owner->isAdmin()) - continue; -?> - - - - - - - - - - - -
:

: - -

: - -

-
- ">    - "> -
- -contentContainerEnd(); -?> - -htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.LogManagement.php b/views/blue/class.LogManagement.php deleted file mode 100644 index f22dcad5c..000000000 --- a/views/blue/class.LogManagement.php +++ /dev/null @@ -1,113 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for LogManagement view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_LogManagement extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $contentdir = $this->params['contentdir']; - $logname = $this->params['logname']; - - $this->htmlStartPage(getMLText("backup_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - - $this->contentHeading(getMLText("log_management")); - $this->contentContainerStart(); - - $print_header=true; - - $handle = opendir($contentdir); - $entries = array(); - while ($e = readdir($handle)){ - if (is_dir($contentdir.$e)) continue; - if (strpos($e,".log")==FALSE) continue; - if (strcmp($e,"current.log")==0) continue; - $entries[] = $e; - } - closedir($handle); - - sort($entries); - $entries = array_reverse($entries); - - foreach ($entries as $entry){ - - if ($print_header){ - print "\n"; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - $print_header=false; - } - - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - } - - if ($print_header) printMLText("empty_notify_list"); - else print "
".getMLText("name")."".getMLText("creation_date")."".getMLText("file_size")."
".$entry."".getLongReadableDate(filectime($contentdir.$entry))."".formatted_size(filesize($contentdir.$entry))."
\n"; - - $this->contentContainerEnd(); - - if ($logname && file_exists($contentdir.$logname)){ - - $this->contentHeading(" "); - $this->contentContainerStart(); - - $this->contentSubHeading(sanitizeString($logname)); - - echo "
"; - echo "
\n";
-			readfile($contentdir.$logname);
-			echo "
\n"; - echo "
"; - - $this->contentContainerEnd(); - } - - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.Login.php b/views/blue/class.Login.php deleted file mode 100644 index 91527a986..000000000 --- a/views/blue/class.Login.php +++ /dev/null @@ -1,137 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for Login view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_Login extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $enableguestlogin = $this->params['enableguestlogin']; - $enablepasswordforgotten = $this->params['enablepasswordforgotten']; - $refer = $this->params['referrer']; - $themes = $this->params['themes']; - - $this->htmlStartPage(getMLText("sign_in"), "login"); - $this->globalBanner(); - $this->pageNavigation(getMLText("sign_in")); -?> - -contentContainerStart(); ?> -
-"; - } -?> - - - - - - - - - - - - - - - - - - - - -
-"; - print ""; - } - print ""; -?> -
-"; - print "
">
-
-contentContainerEnd(); - $tmpfoot = array(); - if ($enableguestlogin) - $tmpfoot[] = "" . getMLText("guest_login") . "\n"; - if ($enablepasswordforgotten) - $tmpfoot[] = "" . getMLText("password_forgotten") . "\n"; - if($tmpfoot) { - print "

"; - print implode(' | ', $tmpfoot); - print "

\n"; - } -?> - -htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.ManageNotify.php b/views/blue/class.ManageNotify.php deleted file mode 100644 index d2dcc5ed5..000000000 --- a/views/blue/class.ManageNotify.php +++ /dev/null @@ -1,195 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for ManageNotify view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_ManageNotify extends SeedDMS_Blue_Style { - - // Get list of subscriptions for documents or folders for user or groups - function getNotificationList($as_group, $folders) { /* {{{ */ - - // First, get the list of groups of which the user is a member. - if ($as_group){ - - $groups = $this->user->getGroups(); - - if (count($groups)==0) return NULL; - - $grpList = ""; - foreach ($groups as $group) { - $grpList .= (strlen($grpList)==0 ? "" : ", ") . $group->getID(); - } - - $queryStr = "SELECT `tblNotify`.* FROM `tblNotify` ". - "WHERE `tblNotify`.`groupID` IN (". $grpList .")"; - - } else { - $queryStr = "SELECT `tblNotify`.* FROM `tblNotify` ". - "WHERE `tblNotify`.`userID` = '". $this->user->getID()."'" ; - } - - $resArr = $this->db->getResultArray($queryStr); - - $ret=array(); - - foreach ($resArr as $res){ - - if (($res["targetType"] == T_DOCUMENT)&&(!$folders)) $ret[]=$res["target"]; - if (($res["targetType"] == T_FOLDER)&&($folders)) $ret[]=$res["target"]; - } - - return $ret; - } /* }}} */ - - function printFolderNotificationList($ret,$deleteaction=true) { /* {{{ */ - if (count($ret)==0) { - printMLText("empty_notify_list"); - } - else { - - print ""; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n"; - foreach($ret as $ID) { - $fld = $this->dms->getFolder($ID); - if (is_object($fld)) { - $owner = $fld->getOwner(); - print ""; - print ""; - print "\n"; - print ""; - print ""; - } - } - print "
".getMLText("name")."".getMLText("owner")."".getMLText("actions")."
" . htmlspecialchars($fld->getName()) . "".htmlspecialchars($owner->getFullName())."
"; - } - } /* }}} */ - - function printDocumentNotificationList($ret,$deleteaction=true) { /* {{{ */ - - if (count($ret)==0) { - printMLText("empty_notify_list"); - } - else { - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n"; - foreach ($ret as $ID) { - $doc = $this->dms->getDocument($ID); - if (is_object($doc)) { - $owner = $doc->getOwner(); - $latest = $doc->getLatestContent(); - $status = $latest->getStatus(); - print "\n"; - print ""; - print "\n"; - print ""; - print ""; - print ""; - print "\n"; - } - } - print "
".getMLText("name")."".getMLText("owner")."".getMLText("status")."".getMLText("version")."".getMLText("actions")."
" . htmlspecialchars($doc->getName()) . "".htmlspecialchars($owner->getFullName())."".getOverallStatusText($status["status"])."".$latest->getVersion()."
"; - } - } /* }}} */ - - function show() { /* {{{ */ - $this->dms = $this->params['dms']; - $this->user = $this->params['user']; - $this->db = $this->dms->getDB(); - - $this->htmlStartPage(getMLText("my_account")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("my_account"), "my_account"); - - $this->contentHeading(getMLText("edit_existing_notify")); - $this->contentContainerStart(); - - print "
"; - $this->contentSubHeading(getMLText("choose_target_folder")); - $this->printFolderChooser("form1",M_READ); - print ""; - print getMLText("include_subdirectories"); - print ""; - print getMLText("include_documents"); - print "  "; - print "
"; - - print "
"; - $this->contentSubHeading(getMLText("choose_target_document")); - $this->printDocumentChooser("form2"); - print "  "; - print "
"; - - $this->contentContainerEnd(); - - - // - // Display the results. - // - $this->contentHeading(getMLText("edit_folder_notify")); - $this->contentContainerStart(); - $this->contentSubHeading(getMLText("user")); - $ret=$this->getNotificationList(false,true); - $this->printFolderNotificationList($ret); - $this->contentSubHeading(getMLText("group")); - $ret=$this->getNotificationList(true,true); - $this->printFolderNotificationList($ret,false); - $this->contentContainerEnd(); - - $this->contentHeading(getMLText("edit_document_notify")); - $this->contentContainerStart(); - $this->contentSubHeading(getMLText("user")); - $ret=$this->getNotificationList(false,false); - $this->printDocumentNotificationList($ret); - $this->contentSubHeading(getMLText("group")); - $ret=$this->getNotificationList(true,false); - $this->printDocumentNotificationList($ret,false); - $this->contentContainerEnd(); - - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.MoveDocument.php b/views/blue/class.MoveDocument.php deleted file mode 100644 index b3bcb5124..000000000 --- a/views/blue/class.MoveDocument.php +++ /dev/null @@ -1,63 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for MoveDocument view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_MoveDocument extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - $this->contentHeading(getMLText("move_document")); - $this->contentContainerStart(); -?> -
- - - - - - - - - -
:printFolderChooser("form1", M_READWRITE);?>

">
-
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.MoveFolder.php b/views/blue/class.MoveFolder.php deleted file mode 100644 index b71521875..000000000 --- a/views/blue/class.MoveFolder.php +++ /dev/null @@ -1,66 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for MoveFolder view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_MoveFolder extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - - $this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true), "view_folder", $folder); - $this->contentHeading(getMLText("move_folder")); - $this->contentContainerStart(); - -?> -
- - - - - - - - - - -
:printFolderChooser("form1", M_READWRITE, $folder->getID());?>
">
-
- - -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.MyAccount.php b/views/blue/class.MyAccount.php deleted file mode 100644 index f49ebdb4b..000000000 --- a/views/blue/class.MyAccount.php +++ /dev/null @@ -1,89 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for MyAccount view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_MyAccount extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $enableuserimage = $this->params['enableuserimage']; - $passwordexpiration = $this->params['passwordexpiration']; - $httproot = $this->params['httproot']; - - $this->htmlStartPage(getMLText("my_account")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("my_account"), "my_account"); - - $this->contentHeading(getMLText("user_info")); - $this->contentContainerStart(); - - print "\n"; - - if ($enableuserimage){ - print "\n"; - print "\n"; - print "\n"; - } - - print "\n"; - print "\n"; - print "\n"; - print "\n\n"; - print "\n"; - print "\n"; - print "\n\n"; - print "\n"; - print "\n"; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - if($passwordexpiration > 0) { - print "\n"; - print "\n"; - print "\n"; - print "\n"; - } - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "
".($user->hasImage() ? "" : getMLText("no_user_image"))."
".getMLText("name")." : ".htmlspecialchars($user->getFullName()).($user->isAdmin() ? " (".getMLText("admin").")" : "")."
".getMLText("user_login")." : ".$user->getLogin()."
".getMLText("email")." : ".htmlspecialchars($user->getEmail())."
".getMLText("comment")." : ".htmlspecialchars($user->getComment())."
".getMLText("password_expiration")." : ".htmlspecialchars($user->getPwdExpiration())."
".getMLText("quota")." : ".SeedDMS_Core_File::format_filesize($user->getQuota())."
".getMLText("used_discspace")." : ".SeedDMS_Core_File::format_filesize($user->getUsedDiskSpace())."
\n"; - - $this->contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.MyDocuments.php b/views/blue/class.MyDocuments.php deleted file mode 100644 index 2cb06a3ac..000000000 --- a/views/blue/class.MyDocuments.php +++ /dev/null @@ -1,489 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for MyDocuments view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_MyDocuments extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $orderby = $this->params['orderby']; - $showInProcess = $this->params['showinprocess']; - - $db = $dms->getDB(); - - $this->htmlStartPage(getMLText("my_documents")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("my_documents"), "my_documents"); - - if ($showInProcess){ - - if (!$db->createTemporaryTable("ttstatid") || !$db->createTemporaryTable("ttcontentid")) { - $this->contentHeading(getMLText("warning")); - $this->contentContainer(getMLText("internal_error_exit")); - $this->htmlEndPage(); - exit; - } - - // Get document list for the current user. - $reviewStatus = $user->getReviewStatus(); - $approvalStatus = $user->getApprovalStatus(); - - // Create a comma separated list of all the documentIDs whose information is - // required. - $dList = array(); - foreach ($reviewStatus["indstatus"] as $st) { - if (!in_array($st["documentID"], $dList)) { - $dList[] = $st["documentID"]; - } - } - foreach ($reviewStatus["grpstatus"] as $st) { - if (!in_array($st["documentID"], $dList)) { - $dList[] = $st["documentID"]; - } - } - foreach ($approvalStatus["indstatus"] as $st) { - if (!in_array($st["documentID"], $dList)) { - $dList[] = $st["documentID"]; - } - } - foreach ($approvalStatus["grpstatus"] as $st) { - if (!in_array($st["documentID"], $dList)) { - $dList[] = $st["documentID"]; - } - } - $docCSV = ""; - foreach ($dList as $d) { - $docCSV .= (strlen($docCSV)==0 ? "" : ", ")."'".$d."'"; - } - - if (strlen($docCSV)>0) { - // Get the document information. - $queryStr = "SELECT `tblDocuments`.*, `tblDocumentLocks`.`userID` as `lockUser`, ". - "`tblDocumentContent`.`version`, `tblDocumentStatus`.*, `tblDocumentStatusLog`.`status`, ". - "`tblDocumentStatusLog`.`comment` AS `statusComment`, `tblDocumentStatusLog`.`date` as `statusDate`, ". - "`tblDocumentStatusLog`.`userID`, `oTbl`.`fullName` AS `ownerName`, `sTbl`.`fullName` AS `statusName` ". - "FROM `tblDocumentContent` ". - "LEFT JOIN `tblDocuments` ON `tblDocuments`.`id` = `tblDocumentContent`.`document` ". - "LEFT JOIN `tblDocumentStatus` ON `tblDocumentStatus`.`documentID` = `tblDocumentContent`.`document` ". - "LEFT JOIN `tblDocumentStatusLog` ON `tblDocumentStatusLog`.`statusID` = `tblDocumentStatus`.`statusID` ". - "LEFT JOIN `ttstatid` ON `ttstatid`.`maxLogID` = `tblDocumentStatusLog`.`statusLogID` ". - "LEFT JOIN `ttcontentid` ON `ttcontentid`.`maxVersion` = `tblDocumentStatus`.`version` AND `ttcontentid`.`document` = `tblDocumentStatus`.`documentID` ". - "LEFT JOIN `tblDocumentLocks` ON `tblDocuments`.`id`=`tblDocumentLocks`.`document` ". - "LEFT JOIN `tblUsers` AS `oTbl` on `oTbl`.`id` = `tblDocuments`.`owner` ". - "LEFT JOIN `tblUsers` AS `sTbl` on `sTbl`.`id` = `tblDocumentStatusLog`.`userID` ". - "WHERE `ttstatid`.`maxLogID`=`tblDocumentStatusLog`.`statusLogID` ". - "AND `ttcontentid`.`maxVersion` = `tblDocumentContent`.`version` ". - "AND `tblDocumentStatusLog`.`status` IN (".S_DRAFT_REV.", ".S_DRAFT_APP.", ".S_EXPIRED.") ". - "AND `tblDocuments`.`id` IN (" . $docCSV . ") ". - "ORDER BY `statusDate` DESC"; - - $resArr = $db->getResultArray($queryStr); - if (is_bool($resArr) && !$resArr) { - $this->contentHeading(getMLText("warning")); - $this->contentContainer(getMLText("internal_error_exit")); - $this->htmlEndPage(); - exit; - } - - // Create an array to hold all of these results, and index the array by - // document id. This makes it easier to retrieve document ID information - // later on and saves us having to repeatedly poll the database every time - // new document information is required. - $docIdx = array(); - foreach ($resArr as $res) { - - // verify expiry - if ( $res["expires"] && time()>$res["expires"]+24*60*60 ){ - if ( $res["status"]==S_DRAFT_APP || $res["status"]==S_DRAFT_REV ){ - $res["status"]=S_EXPIRED; - } - } - - $docIdx[$res["id"]][$res["version"]] = $res; - } - - // List the documents where a review has been requested. - $this->contentHeading(getMLText("documents_to_review")); - $this->contentContainerStart(); - $printheader=true; - $iRev = array(); - $dList = array(); - foreach ($reviewStatus["indstatus"] as $st) { - - if ( $st["status"]==0 && isset($docIdx[$st["documentID"]][$st["version"]]) && !in_array($st["documentID"], $dList) ) { - $dList[] = $st["documentID"]; - - if ($printheader){ - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - $printheader=false; - } - - print "\n"; - print ""; - print ""; - print ""; - print ""; - print "".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"])).""; - print "\n"; - } - } - foreach ($reviewStatus["grpstatus"] as $st) { - - if (!in_array($st["documentID"], $iRev) && $st["status"]==0 && isset($docIdx[$st["documentID"]][$st["version"]]) && !in_array($st["documentID"], $dList) && $docIdx[$st["documentID"]][$st["version"]]['owner'] != $user->getId()) { - $dList[] = $st["documentID"]; - - if ($printheader){ - print "
".getMLText("name")."".getMLText("owner")."".getMLText("version")."".getMLText("last_update")."".getMLText("expires")."
".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."".$st["version"]."".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"]) ."
"; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - $printheader=false; - } - - print "\n"; - print ""; - print ""; - print ""; - print ""; - print "".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"])).""; - print "\n"; - } - } - if (!$printheader){ - echo "\n
".getMLText("name")."".getMLText("owner")."".getMLText("version")."".getMLText("last_update")."".getMLText("expires")."
".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."".$st["version"]."".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."
"; - }else{ - printMLText("no_docs_to_review"); - } - $this->contentContainerEnd(); - - // List the documents where an approval has been requested. - $this->contentHeading(getMLText("documents_to_approve")); - $this->contentContainerStart(); - $printheader=true; - - foreach ($approvalStatus["indstatus"] as $st) { - - if ( $st["status"]==0 && isset($docIdx[$st["documentID"]][$st["version"]])) { - - if ($printheader){ - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - $printheader=false; - } - print "\n"; - print ""; - print ""; - print ""; - print ""; - print "".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"])).""; - print "\n"; - } - } - foreach ($approvalStatus["grpstatus"] as $st) { - - if (!in_array($st["documentID"], $iRev) && $st["status"]==0 && isset($docIdx[$st["documentID"]][$st["version"]]) && $docIdx[$st["documentID"]][$st["version"]]['owner'] != $user->getId()) { - if ($printheader){ - print "
".getMLText("name")."".getMLText("owner")."".getMLText("version")."".getMLText("last_update")."".getMLText("expires")."
".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."".$st["version"]."".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."
"; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - $printheader=false; - } - print "\n"; - print ""; - print ""; - print ""; - print ""; - print "".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"])).""; - print "\n"; - } - } - if (!$printheader){ - echo "\n
".getMLText("name")."".getMLText("owner")."".getMLText("version")."".getMLText("last_update")."".getMLText("expires")."
".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."".$st["version"]."".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."
\n"; - }else{ - printMLText("no_docs_to_approve"); - } - $this->contentContainerEnd(); - } - else { - - $this->contentHeading(getMLText("documents_to_review")); - $this->contentContainerStart(); - printMLText("no_review_needed"); - $this->contentContainerEnd(); - $this->contentHeading(getMLText("documents_to_approve")); - $this->contentContainerStart(); - printMLText("no_approval_needed"); - $this->contentContainerEnd(); - } - - // Get list of documents owned by current user that are pending review or - // pending approval. - $queryStr = "SELECT `tblDocuments`.*, `tblDocumentLocks`.`userID` as `lockUser`, ". - "`tblDocumentContent`.`version`, `tblDocumentStatus`.*, `tblDocumentStatusLog`.`status`, ". - "`tblDocumentStatusLog`.`comment` AS `statusComment`, `tblDocumentStatusLog`.`date` as `statusDate`, ". - "`tblDocumentStatusLog`.`userID`, `oTbl`.`fullName` AS `ownerName`, `sTbl`.`fullName` AS `statusName` ". - "FROM `tblDocumentContent` ". - "LEFT JOIN `tblDocuments` ON `tblDocuments`.`id` = `tblDocumentContent`.`document` ". - "LEFT JOIN `tblDocumentStatus` ON `tblDocumentStatus`.`documentID` = `tblDocumentContent`.`document` ". - "LEFT JOIN `tblDocumentStatusLog` ON `tblDocumentStatusLog`.`statusID` = `tblDocumentStatus`.`statusID` ". - "LEFT JOIN `ttstatid` ON `ttstatid`.`maxLogID` = `tblDocumentStatusLog`.`statusLogID` ". - "LEFT JOIN `ttcontentid` ON `ttcontentid`.`maxVersion` = `tblDocumentStatus`.`version` AND `ttcontentid`.`document` = `tblDocumentStatus`.`documentID` ". - "LEFT JOIN `tblDocumentLocks` ON `tblDocuments`.`id`=`tblDocumentLocks`.`document` ". - "LEFT JOIN `tblUsers` AS `oTbl` on `oTbl`.`id` = `tblDocuments`.`owner` ". - "LEFT JOIN `tblUsers` AS `sTbl` on `sTbl`.`id` = `tblDocumentStatusLog`.`userID` ". - "WHERE `ttstatid`.`maxLogID`=`tblDocumentStatusLog`.`statusLogID` ". - "AND `ttcontentid`.`maxVersion` = `tblDocumentContent`.`version` ". - "AND `tblDocuments`.`owner` = '".$user->getID()."' ". - "AND `tblDocumentStatusLog`.`status` IN (".S_DRAFT_REV.", ".S_DRAFT_APP.") ". - "ORDER BY `statusDate` DESC"; - - $resArr = $db->getResultArray($queryStr); - if (is_bool($resArr) && !$resArr) { - $this->contentHeading(getMLText("warning")); - $this->contentContainer("Internal error. Unable to complete request. Exiting."); - $this->htmlEndPage(); - exit; - } - - $this->contentHeading(getMLText("documents_user_requiring_attention")); - $this->contentContainerStart(); - if (count($resArr)>0) { - - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - - foreach ($resArr as $res) { - - // verify expiry - if ( $res["expires"] && time()>$res["expires"]+24*60*60 ){ - if ( $res["status"]==S_DRAFT_APP || $res["status"]==S_DRAFT_REV ){ - $res["status"]=S_EXPIRED; - } - } - - print "\n"; - print "\n"; - print ""; - print ""; - print ""; - print ""; - print "\n"; - } - print "
".getMLText("name")."".getMLText("status")."".getMLText("version")."".getMLText("last_update")."".getMLText("expires")."
" . htmlspecialchars($res["name"]) . "".getOverallStatusText($res["status"])."".$res["version"]."".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."
"; - - } - else printMLText("no_docs_to_look_at"); - - $this->contentContainerEnd(); - - - // Get list of documents locked by current user - $queryStr = "SELECT `tblDocuments`.*, `tblDocumentLocks`.`userID` as `lockUser`, ". - "`tblDocumentContent`.`version`, `tblDocumentStatus`.*, `tblDocumentStatusLog`.`status`, ". - "`tblDocumentStatusLog`.`comment` AS `statusComment`, `tblDocumentStatusLog`.`date` as `statusDate`, ". - "`tblDocumentStatusLog`.`userID`, `oTbl`.`fullName` AS `ownerName`, `sTbl`.`fullName` AS `statusName` ". - "FROM `tblDocumentContent` ". - "LEFT JOIN `tblDocuments` ON `tblDocuments`.`id` = `tblDocumentContent`.`document` ". - "LEFT JOIN `tblDocumentStatus` ON `tblDocumentStatus`.`documentID` = `tblDocumentContent`.`document` ". - "LEFT JOIN `tblDocumentStatusLog` ON `tblDocumentStatusLog`.`statusID` = `tblDocumentStatus`.`statusID` ". - "LEFT JOIN `ttstatid` ON `ttstatid`.`maxLogID` = `tblDocumentStatusLog`.`statusLogID` ". - "LEFT JOIN `ttcontentid` ON `ttcontentid`.`maxVersion` = `tblDocumentStatus`.`version` AND `ttcontentid`.`document` = `tblDocumentStatus`.`documentID` ". - "LEFT JOIN `tblDocumentLocks` ON `tblDocuments`.`id`=`tblDocumentLocks`.`document` ". - "LEFT JOIN `tblUsers` AS `oTbl` on `oTbl`.`id` = `tblDocuments`.`owner` ". - "LEFT JOIN `tblUsers` AS `sTbl` on `sTbl`.`id` = `tblDocumentStatusLog`.`userID` ". - "WHERE `ttstatid`.`maxLogID`=`tblDocumentStatusLog`.`statusLogID` ". - "AND `ttcontentid`.`maxVersion` = `tblDocumentContent`.`version` ". - "AND `tblDocumentLocks`.`userID` = '".$user->getID()."' ". - "ORDER BY `statusDate` DESC"; - - $resArr = $db->getResultArray($queryStr); - if (is_bool($resArr) && !$resArr) { - $this->contentHeading(getMLText("warning")); - $this->contentContainer("Internal error. Unable to complete request. Exiting."); - $this->htmlEndPage(); - exit; - } - - $this->contentHeading(getMLText("documents_locked_by_you")); - $this->contentContainerStart(); - if (count($resArr)>0) { - - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - - foreach ($resArr as $res) { - - // verify expiry - if ( $res["expires"] && time()>$res["expires"]+24*60*60 ){ - if ( $res["status"]==S_DRAFT_APP || $res["status"]==S_DRAFT_REV ){ - $res["status"]=S_EXPIRED; - } - } - - print "\n"; - print "\n"; - print ""; - print ""; - print ""; - print ""; - print "\n"; - } - print "
".getMLText("name")."".getMLText("status")."".getMLText("version")."".getMLText("last_update")."".getMLText("expires")."
" . htmlspecialchars($res["name"]) . "".getOverallStatusText($res["status"])."".$res["version"]."".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."
"; - - } - else printMLText("no_docs_locked"); - - $this->contentContainerEnd(); - - } - else { - - // Get list of documents owned by current user - if (!$db->createTemporaryTable("ttstatid")) { - $this->contentHeading(getMLText("warning")); - $this->contentContainer(getMLText("internal_error_exit")); - $this->htmlEndPage(); - exit; - } - - if (!$db->createTemporaryTable("ttcontentid")) { - $this->contentHeading(getMLText("warning")); - $this->contentContainer(getMLText("internal_error_exit")); - $this->htmlEndPage(); - exit; - } - $queryStr = "SELECT `tblDocuments`.*, `tblDocumentLocks`.`userID` as `lockUser`, ". - "`tblDocumentContent`.`version`, `tblDocumentStatus`.*, `tblDocumentStatusLog`.`status`, ". - "`tblDocumentStatusLog`.`comment` AS `statusComment`, `tblDocumentStatusLog`.`date` as `statusDate`, ". - "`tblDocumentStatusLog`.`userID`, `oTbl`.`fullName` AS `ownerName`, `sTbl`.`fullName` AS `statusName` ". - "FROM `tblDocumentContent` ". - "LEFT JOIN `tblDocuments` ON `tblDocuments`.`id` = `tblDocumentContent`.`document` ". - "LEFT JOIN `tblDocumentStatus` ON `tblDocumentStatus`.`documentID` = `tblDocumentContent`.`document` ". - "LEFT JOIN `tblDocumentStatusLog` ON `tblDocumentStatusLog`.`statusID` = `tblDocumentStatus`.`statusID` ". - "LEFT JOIN `ttstatid` ON `ttstatid`.`maxLogID` = `tblDocumentStatusLog`.`statusLogID` ". - "LEFT JOIN `ttcontentid` ON `ttcontentid`.`maxVersion` = `tblDocumentStatus`.`version` AND `ttcontentid`.`document` = `tblDocumentStatus`.`documentID` ". - "LEFT JOIN `tblDocumentLocks` ON `tblDocuments`.`id`=`tblDocumentLocks`.`document` ". - "LEFT JOIN `tblUsers` AS `oTbl` on `oTbl`.`id` = `tblDocuments`.`owner` ". - "LEFT JOIN `tblUsers` AS `sTbl` on `sTbl`.`id` = `tblDocumentStatusLog`.`userID` ". - "WHERE `ttstatid`.`maxLogID`=`tblDocumentStatusLog`.`statusLogID` ". - "AND `ttcontentid`.`maxVersion` = `tblDocumentContent`.`version` ". - "AND `tblDocuments`.`owner` = '".$user->getID()."' "; - - if ($orderby=='e') $queryStr .= "ORDER BY `expires`"; - else if ($orderby=='u') $queryStr .= "ORDER BY `statusDate`"; - else if ($orderby=='s') $queryStr .= "ORDER BY `status`"; - else $queryStr .= "ORDER BY `name`"; - - $resArr = $db->getResultArray($queryStr); - if (is_bool($resArr) && !$resArr) { - $this->contentHeading(getMLText("warning")); - $this->contentContainer(getMLText("internal_error_exit")); - $this->htmlEndPage(); - exit; - } - - $this->contentHeading(getMLText("all_documents")); - $this->contentContainerStart(); - - if (count($resArr)>0) { - - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - - foreach ($resArr as $res) { - - // verify expiry - if ( $res["expires"] && time()>$res["expires"]+24*60*60 ){ - if ( $res["status"]==S_DRAFT_APP || $res["status"]==S_DRAFT_REV ){ - $res["status"]=S_EXPIRED; - } - } - - print "\n"; - print "\n"; - print ""; - print ""; - print ""; - //print ""; - print ""; - print "\n"; - } - print "
".getMLText("name")."".getMLText("status")."".getMLText("version")."".getMLText("last_update")."".getMLText("expires")."
" . htmlspecialchars($res["name"]) . "".getOverallStatusText($res["status"])."".$res["version"]."".$res["statusDate"]." ". htmlspecialchars($res["statusName"])."".(!$res["expires"] ? getMLText("does_not_expire"):getReadableDate($res["expires"]))."".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."
"; - } - else printMLText("empty_notify_list"); - - $this->contentContainerEnd(); - } - - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.ObjectCheck.php b/views/blue/class.ObjectCheck.php deleted file mode 100644 index 6a9eb098e..000000000 --- a/views/blue/class.ObjectCheck.php +++ /dev/null @@ -1,216 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for ObjectCheck view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_ObjectCheck extends SeedDMS_Blue_Style { - - function tree($dms, $folder, $repair, $path=':', $indent='') { /* {{{ */ - - /* Don't do folderlist check for root folder */ - if($path != ':') { - $folderList = $folder->getFolderList(); - /* Check the folder */ - if($folderList != $path) { - print "\n"; - $this->needsrepair = true; - print "getID()."\">"; - print "getID()."\">"; - $tmppath = $folder->getPath(); - for ($i = 1; $i < count($tmppath); $i++) { - print "/".htmlspecialchars($tmppath[$i]->getName()); - } - print $folder->getName(); - print ""; - - $owner = $folder->getOwner(); - print "".htmlspecialchars($owner->getFullName()).""; - print "Folderlist is '".$folderList."', should be '".$path."'"; - if($repair) { - $folder->repair(); - print "Repaired\n"; - } else { - print "\n"; - } - print "\n"; - } - } - - $subfolders = $folder->getSubFolders(); - foreach($subfolders as $subfolder) { - $this->tree($dms, $subfolder, $repair, $path.$folder->getId().':', $indent.' '); - } - $path .= $folder->getId().':'; - $documents = $folder->getDocuments(); - foreach($documents as $document) { - /* Check the folder list of the document */ - $folderList = $document->getFolderList(); - if($folderList != $path) { - print "\n"; - $this->needsrepair = true; - $lc = $document->getLatestContent(); - print "getID()."\">getFileType())."\" title=\"".$lc->getMimeType()."\">"; - print "getID()."\">/"; - $folder = $document->getFolder(); - $tmppath = $folder->getPath(); - for ($i = 1; $i < count($tmppath); $i++) { - print htmlspecialchars($tmppath[$i]->getName())."/"; - } - print htmlspecialchars($document->getName()); - print ""; - $owner = $document->getOwner(); - print "".htmlspecialchars($owner->getFullName()).""; - print "Folderlist is '".$folderList."', should be '".$path."'"; - if($repair) { - $document->repair(); - print "Repaired\n"; - } else { - print "\n"; - } - print "\n"; - } - - /* Check if the content is available */ - $versions = $document->getContent(); - if($versions) { - foreach($versions as $version) { - $filepath = $dms->contentDir . $version->getPath(); - if(!file_exists($filepath)) { - print "\n"; - print "getID()."\">getFileType())."\" title=\"".$version->getMimeType()."\">"; - print "getID()."\">/"; - $folder = $document->getFolder(); - $tmppath = $folder->getPath(); - for ($i = 1; $i < count($tmppath); $i++) { - print htmlspecialchars($tmppath[$i]->getName())."/"; - } - print htmlspecialchars($document->getName()); - print ""; - $owner = $document->getOwner(); - print "".htmlspecialchars($owner->getFullName()).""; - print "Document content of version ".$version->getVersion()." is missing ('".$path."')"; - if($repair) { - print "Cannot repaired\n"; - } else { - print "\n"; - } - print "\n"; - } - } - } else { - print "\n"; - print "\n"; - print "getID()."\">/"; - $folder = $document->getFolder(); - $tmppath = $folder->getPath(); - for ($i = 1; $i < count($tmppath); $i++) { - print htmlspecialchars($tmppath[$i]->getName())."/"; - } - print htmlspecialchars($document->getName()); - print ""; - $owner = $document->getOwner(); - print "".htmlspecialchars($owner->getFullName()).""; - print "Document has no content! Delete the document manually."; - print "\n"; - } - } - } /* }}} */ - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $unlinkedversions = $this->params['unlinkedcontent']; - $nofilesizeversions = $this->params['nofilesizeversions']; - $nochecksumversions = $this->params['nochecksumversions']; - $repair = $this->params['repair']; - $unlink = $this->params['unlink']; - $setfilesize = $this->params['setfilesize']; - $setchecksum = $this->params['setchecksum']; - - $this->htmlStartPage(getMLText("admin_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - $this->contentHeading(getMLText("objectcheck")); - $this->contentContainerStart(); - - if($repair) { - echo "

".getMLText('repairing_objects')."

"; - } - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - $this->needsrepair = false; - $this->tree($dms, $folder, $repair); - print "
".getMLText("name")."".getMLText("owner")."".getMLText("error")."
\n"; - - if($this->needsrepair && $repair == 0) { - echo '

'.getMLText('do_object_repair').'

'; - } - $this->contentContainerEnd(); - - $this->contentHeading(getMLText("unlinked_content")); - $this->contentContainerStart(); - if($unlink) { - echo "

".getMLText('unlinking_objects')."

"; - } - - if($unlinkedversions) { - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - foreach($unlinkedversions as $version) { - $doc = $version->getDocument(); - print ""; - if($unlink) { - $doc->removeContent($version); - } - print "\n"; - } - print "
".getMLText("document")."".getMLText("version")."".getMLText("original_filename")."".getMLText("mimetype")."
".$doc->getId()."".$version->getVersion()."".$version->getOriginalFileName()."".$version->getMimeType()."
\n"; - if($unlink == 0) { - echo '

'.getMLText('do_object_unlink').'

'; - } - } - - $this->contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.OverrideContentStatus.php b/views/blue/class.OverrideContentStatus.php deleted file mode 100644 index 3259da4f4..000000000 --- a/views/blue/class.OverrideContentStatus.php +++ /dev/null @@ -1,99 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for OverrideContentStatus view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_OverrideContentStatus extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - $content = $this->params['version']; - - $overallStatus = $content->getStatus(); - $reviewStatus = $content->getReviewStatus(); - $approvalStatus = $content->getApprovalStatus(); - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - - $this->contentHeading(getMLText("change_status")); - -?> - -contentContainerStart(); - -// Display the Review form. -?> -
- - - - -
: -
: -
- - - -
-
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.PasswordForgotten.php b/views/blue/class.PasswordForgotten.php deleted file mode 100644 index d9e9ffd99..000000000 --- a/views/blue/class.PasswordForgotten.php +++ /dev/null @@ -1,71 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for PasswordForgotten view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_PasswordForgotten extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $referrer = $this->params['referrer']; - - $this->htmlStartPage(getMLText("password_forgotten"), "login"); - $this->globalBanner(); - $this->pageNavigation(getMLText("password_forgotten")); -?> - -contentContainerStart(); ?> -
-"; - } -?> -

- - - - - - - - - - - - -
:
:
">
-
-contentContainerEnd(); ?> - -

-htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.RemoveArchive.php b/views/blue/class.RemoveArchive.php deleted file mode 100644 index 5e990a5c7..000000000 --- a/views/blue/class.RemoveArchive.php +++ /dev/null @@ -1,57 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for RemoveArchive view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_RemoveArchive extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $arkname = $this->params['archive']; - - $this->htmlStartPage(getMLText("backup_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - $this->contentHeading(getMLText("backup_remove")); - $this->contentContainerStart(); - -?> -
- - -

htmlspecialchars($arkname)));?>

- "> -
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.RemoveDocument.php b/views/blue/class.RemoveDocument.php deleted file mode 100644 index 5df57bdb2..000000000 --- a/views/blue/class.RemoveDocument.php +++ /dev/null @@ -1,60 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for RemoveDocument view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_RemoveDocument extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - $this->contentHeading(getMLText("rm_document")); - $this->contentContainerStart(); - -?> -
- - -

- htmlspecialchars($document->getName())));?> -

-

">

-
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.RemoveDocumentFile.php b/views/blue/class.RemoveDocumentFile.php deleted file mode 100644 index f194d1a9d..000000000 --- a/views/blue/class.RemoveDocumentFile.php +++ /dev/null @@ -1,60 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for RemoveDocumentFile view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_RemoveDocumentFile extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - $file = $this->params['file']; - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document"); - $this->contentHeading(getMLText("rm_file")); - $this->contentContainerStart(); - -?> -
- - - -

htmlspecialchars($document->getName()), "name" => htmlspecialchars($file->getName())));?>

- "> -
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.RemoveDump.php b/views/blue/class.RemoveDump.php deleted file mode 100644 index e0ce18ae1..000000000 --- a/views/blue/class.RemoveDump.php +++ /dev/null @@ -1,56 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for RemoveDump view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_RemoveDump extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $dumpname = $this->params['dumpfile']; - - $this->htmlStartPage(getMLText("backup_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - $this->contentHeading(getMLText("dump_remove")); - $this->contentContainerStart(); -?> -
- - -

htmlspecialchars($dumpname)));?>

- "> -
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.RemoveEvent.php b/views/blue/class.RemoveEvent.php deleted file mode 100644 index 3d0092afd..000000000 --- a/views/blue/class.RemoveEvent.php +++ /dev/null @@ -1,58 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for RemoveEvent view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_RemoveEvent extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $event = $this->params['event']; - - $this->htmlStartPage(getMLText("calendar")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("calendar"), "calendar"); - - $this->contentHeading(getMLText("edit_event")); - $this->contentContainerStart(); - -?> -
- - "> -

htmlspecialchars($event["name"])));?>

- "> -
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.RemoveFolder.php b/views/blue/class.RemoveFolder.php deleted file mode 100644 index 4cb631940..000000000 --- a/views/blue/class.RemoveFolder.php +++ /dev/null @@ -1,59 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for RemoveFolder view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_RemoveFolder extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - - $this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true), "view_folder", $folder); - $this->contentHeading(getMLText("rm_folder")); - $this->contentContainerStart(); -?> -
- - - -

- htmlspecialchars($folder->getName())));?> -

-

">

-
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.RemoveFolderFiles.php b/views/blue/class.RemoveFolderFiles.php deleted file mode 100644 index b70aa8409..000000000 --- a/views/blue/class.RemoveFolderFiles.php +++ /dev/null @@ -1,57 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for RemoveFolderFiles view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_RemoveFolderFiles extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - - $this->htmlStartPage(getMLText("files_deletion")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - - $this->contentHeading(getMLText("files_deletion")); - $this->contentContainerStart(); -?> -
- - -

htmlspecialchars($folder->getName())));?>

- "> -
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.RemoveGroup.php b/views/blue/class.RemoveGroup.php deleted file mode 100644 index 165cc44ba..000000000 --- a/views/blue/class.RemoveGroup.php +++ /dev/null @@ -1,60 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for RemoveGroup view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_RemoveGroup extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $group = $this->params['group']; - - $this->htmlStartPage(getMLText("admin_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - $this->contentHeading(getMLText("rm_group")); - $this->contentContainerStart(); - -?> -
- - - -

- htmlspecialchars($group->getName())));?> -

-

">

-
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.RemoveLog.php b/views/blue/class.RemoveLog.php deleted file mode 100644 index 650b93af1..000000000 --- a/views/blue/class.RemoveLog.php +++ /dev/null @@ -1,61 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for RemoveLog view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_RemoveLog extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $lognames = $this->params['lognames']; - - $this->htmlStartPage(getMLText("backup_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - $this->contentHeading(getMLText("rm_file")); - $this->contentContainerStart(); -?> -
- -\n"; - - } -?> -

implode(', ', $lognames)));?>

- "> -
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.RemoveUser.php b/views/blue/class.RemoveUser.php deleted file mode 100644 index 46dc42105..000000000 --- a/views/blue/class.RemoveUser.php +++ /dev/null @@ -1,78 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for RemoveUser view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_RemoveUser extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $rmuser = $this->params['rmuser']; - $allusers = $this->params['allusers']; - - $this->htmlStartPage(getMLText("admin_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - $this->contentHeading(getMLText("rm_user")); - $this->contentContainerStart(); - -?> -
- - - -

- htmlspecialchars($rmuser->getFullName())));?> -

- -

-: - -

- -

">

- -
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.RemoveVersion.php b/views/blue/class.RemoveVersion.php deleted file mode 100644 index 016759e3d..000000000 --- a/views/blue/class.RemoveVersion.php +++ /dev/null @@ -1,59 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for RemoveVersion view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_RemoveVersion extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - $version = $this->params['version']; - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - $this->contentHeading(getMLText("rm_version")); - $this->contentContainerStart(); -?> -
- - - -

htmlspecialchars($document->getName()), "version" => $version->getVersion()));?>

- "> -
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.ReviewDocument.php b/views/blue/class.ReviewDocument.php deleted file mode 100644 index 546d3003f..000000000 --- a/views/blue/class.ReviewDocument.php +++ /dev/null @@ -1,178 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for ReviewDocument view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_ReviewDocument extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - $content = $this->params['version']; - - $reviews = $content->getReviewStatus(); - foreach($reviews as $review) { - if($review['reviewID'] == $_GET['reviewid']) { - $reviewStatus = $review; - break; - } - } - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - $this->contentHeading(getMLText("submit_review")); -?> - - -contentContainerStart(); - - // Display the Review form. - if ($reviewStatus['type'] == 0) { - if($reviewStatus["status"]!=0) { - - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - $indUser = $dms->getUser($reviewStatus["userID"]); - print ""; - print "
".getMLText("status")."".getMLText("comment")."".getMLText("last_update")."
"; - printReviewStatusText($reviewStatus["status"]); - print "".htmlspecialchars($reviewStatus["comment"])."".$reviewStatus["date"]." - ". htmlspecialchars($indUser->getFullname()) ."

"; - } -?> -
- - - - - -
: -
-
- - - - -
-
-"; - print "".getMLText("status").""; - print "".getMLText("comment").""; - print "".getMLText("last_update").""; - print ""; - print ""; - printReviewStatusText($reviewStatus["status"]); - print ""; - print "".htmlspecialchars($reviewStatus["comment"]).""; - $indUser = $dms->getUser($reviewStatus["userID"]); - print "".$reviewStatus["date"]." - ". htmlspecialchars($indUser->getFullname()) .""; - print "
\n"; - } - -?> -
- - - - - - -
: -
: - -
- - '/> - - -
-
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.ReviewSummary.php b/views/blue/class.ReviewSummary.php deleted file mode 100644 index e11165793..000000000 --- a/views/blue/class.ReviewSummary.php +++ /dev/null @@ -1,44 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for ReviewSummary view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_ReviewSummary extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - - if (!$db->createTemporaryTable("ttstatid")) { - UI::exitError(getMLText("review_summary"),getMLText("internal_error_exit")); - } - - } /* }}} */ -} -?> diff --git a/views/blue/class.Search.php b/views/blue/class.Search.php deleted file mode 100644 index cd1a3296e..000000000 --- a/views/blue/class.Search.php +++ /dev/null @@ -1,173 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for Search result view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_Search extends SeedDMS_Blue_Style { - - function markQuery($str, $tag = "b") { - $querywords = preg_split("/ /", $this->query); - - foreach ($querywords as $queryword) - $str = str_ireplace("($queryword)", "<" . $tag . ">\\1", $str); - - return $str; - } - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $this->query = $this->params['query']; - $entries = $this->params['searchhits']; - $totalpages = $this->params['totalpages']; - $pageNumber = $this->params['pagenumber']; - $searchTime = $this->params['searchtime']; - $urlparams = $this->params['urlparams']; - $searchin = $this->params['searchin']; - - $this->htmlStartPage(getMLText("search_results")); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true), ""); - $this->contentHeading(getMLText("search_results")); - $this->contentContainerStart(); - $this->pageList($pageNumber, $totalpages, "../op/op.Search.php", $urlparams); - - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - //print "\n"; - //print "\n"; - print "\n\n\n"; - - $resultsFilteredByAccess = false; - $foldercount = $doccount = 0; - foreach ($entries as $entry) { - if(get_class($entry) == 'SeedDMS_Core_Document') { - $document = $entry; - $doccount++; - $lc = $document->getLatestContent(); - print ""; - //print ""; - if (in_array(2, $searchin)) { - $docName = $this->markQuery(htmlspecialchars($document->getName()), "i"); - } else { - $docName = htmlspecialchars($document->getName()); - } - print ""; - print ""; - - $attributes = $lc->getAttributes(); - print ""; - - $owner = $document->getOwner(); - print ""; - $display_status=$lc->getStatus(); - print ""; - - print ""; - - if (in_array(3, $searchin)) $comment = $this->markQuery(htmlspecialchars($document->getComment())); - else $comment = htmlspecialchars($document->getComment()); - if (strlen($comment) > 50) $comment = substr($comment, 0, 47) . "..."; - print ""; - print "\n"; - } elseif(get_class($entry) == 'SeedDMS_Core_Folder') { - $folder = $entry; - $foldercount++; - if (in_array(2, $searchin)) { - $folderName = $this->markQuery(htmlspecialchars($folder->getName()), "i"); - } else { - $folderName = htmlspecialchars($folder->getName()); - } - print ""; - print ""; - print ""; - - $owner = $folder->getOwner(); - print ""; - print ""; - print ""; - if (in_array(3, $searchin)) $comment = $this->markQuery(htmlspecialchars($folder->getComment())); - else $comment = htmlspecialchars($folder->getComment()); - if (strlen($comment) > 50) $comment = substr($comment, 0, 47) . "..."; - print ""; - print "\n"; - } - } - if (0 && $resultsFilteredByAccess) { - print ""; - } - - print "
".getMLText("name")."".getMLText("attributes")."".getMLText("owner")."".getMLText("status")."".getMLText("version")."".getMLText("comment")."".getMLText("reviewers")."".getMLText("approvers")."
getID()."\">getMimeIcon($lc->getFileType())."\" title=\"".$lc->getMimeType()."\">getID()."\">/"; - $folder = $document->getFolder(); - $path = $folder->getPath(); - for ($i = 1; $i < count($path); $i++) { - print htmlspecialchars($path[$i]->getName())."/"; - } - print $docName; - print ""; - print "
    \n"; - $attributes = $lc->getAttributes(); - if($attributes) { - foreach($attributes as $attribute) { - $attrdef = $attribute->getAttributeDefinition(); - print "
  • ".htmlspecialchars($attrdef->getName()).": ".htmlspecialchars($attribute->getValue())."
  • \n"; - } - } - print "
\n"; - print "
".htmlspecialchars($owner->getFullName())."".getOverallStatusText($display_status["status"]). "".$lc->getVersion()."".$comment."
getID()."\">getID()."\">"; - $path = $folder->getPath(); - print "/"; - for ($i = 1; $i < count($path)-1; $i++) { - print htmlspecialchars($path[$i]->getName())."/"; - } - print $folderName; - print "".htmlspecialchars($owner->getFullName())."".$comment."
". getMLText("search_results_access_filtered") . "
\n"; - $numResults = $doccount + $foldercount; - if ($numResults == 0) { - print "

".getMLText("search_no_results")."

"; - } else { - // print "

".getMLText("search_report", array("doccount" => $doccount, "foldercount" => $foldercount, 'searchtime'=>$searchTime))."

"; - } - - $this->pageList($pageNumber, $totalpages, "../op/op.Search.php", $_GET); - - $this->contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> - diff --git a/views/blue/class.SearchForm.php b/views/blue/class.SearchForm.php deleted file mode 100644 index 6285c3fe7..000000000 --- a/views/blue/class.SearchForm.php +++ /dev/null @@ -1,271 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for SearchForm view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_SearchForm extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $attrdefs = $this->params['attrdefs']; - $allCats = $this->params['allcategories']; - $allUsers = $this->params['allusers']; - $enablefullsearch = $this->params['enablefullsearch']; - - $this->htmlStartPage(getMLText("search")); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true), "", $folder); -?> - -contentHeading(getMLText("search")); - $this->contentContainerStart(); -?> - -
- -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\n"; -echo "\n\n"; -*/ -?> - - - - -
: - - -
- - -
:
    -
  • ()
  • -
  • -
  • -
  • -
-
getName()); ?>printAttributeEditField($attrdef, '') ?>
:
()
- -
:
()
-
    -
  • -
  • -
  • -
  • -
  • -
  • -
-
: - -
:printFolderChooser("form1", M_READ, -1, $folder);?>
: - -printDateChooser(-1, "createstart"); - print "  "; - printMLText("and"); - print "  "; - $this->printDateChooser(-1, "createend"); -?> -
".getMLText("last_update").":"; -printMLText("between"); -print "  "; -$this->printDateChooser(-1, "updatestart"); -print "  "; -printMLText("and"); -print "  "; -$this->printDateChooser(-1, "updateend"); -echo "
">
- -
- -
-
-
- -

- - - - - - - - - - - - - - - -
: - - -
: - -
: - -
">
- -
-
-
- - -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.SearchFulltext.php b/views/blue/class.SearchFulltext.php deleted file mode 100644 index e9ec22407..000000000 --- a/views/blue/class.SearchFulltext.php +++ /dev/null @@ -1,133 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for Search result view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_SearchFulltext extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $entries = $this->params['searchhits']; - $totalpages = $this->params['totalpages']; - $totaldocs = $this->params['totaldocs']; - $pageNumber = $this->params['pagenumber']; - $urlparams = $this->params['urlparams']; - $searchTime = $this->params['searchtime']; - - $this->htmlStartPage(getMLText("search_results")); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true), "", $folder); - $this->contentHeading(getMLText("search_results")); - - $this->contentContainerStart(); -?> - - - - - -
- $totaldocs)); - } -?> - $searchTime));?>
- -contentContainerEnd(); - $this->htmlEndPage(); - exit; - } - - $this->pageList($pageNumber, $totalpages, "../op/op.SearchFulltext.php", $_GET); - - print ""; - print "\n\n"; - //print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - //print "\n"; - //print "\n"; - print "\n\n\n"; - - $resultsFilteredByAccess = false; - foreach ($entries as $document) { - if ($document->getAccessMode($user) < M_READ) { - $resultsFilteredByAccess = true; - } - else { - $lc = $document->getLatestContent(); - print ""; - $docName = htmlspecialchars($document->getName()); - print ""; - - $owner = $document->getOwner(); - print ""; - $display_status=$lc->getStatus(); - print ""; - - print ""; - - $comment = htmlspecialchars($document->getComment()); - if (strlen($comment) > 50) $comment = substr($comment, 0, 47) . "..."; - print ""; - print "\n"; - } - } - if ($resultsFilteredByAccess) { - print ""; - } - print "
".getMLText("name")."".getMLText("owner")."".getMLText("status")."".getMLText("version")."".getMLText("comment")."".getMLText("reviewers")."".getMLText("approvers")."
getID()."\">/"; - $folder = $document->getFolder(); - $path = $folder->getPath(); - for ($i = 1; $i < count($path); $i++) { - print htmlspecialchars($path[$i]->getName())."/"; - } - print $docName; - print "".htmlspecialchars($owner->getFullName())."".getOverallStatusText($display_status["status"]). "".$lc->getVersion()."".$comment."
". getMLText("search_results_access_filtered") . "
\n"; - - $this->pageList($pageNumber, $totalpages, "../op/op.Search.php", $_GET); - - $this->contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> - diff --git a/views/blue/class.SetExpires.php b/views/blue/class.SetExpires.php deleted file mode 100644 index d93773309..000000000 --- a/views/blue/class.SetExpires.php +++ /dev/null @@ -1,70 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for SetExpires view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_SetExpires extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - $this->contentHeading(getMLText("set_expiry")); - $this->contentContainerStart(); -?> - -
- - - - - - - -
: - expires()?"":"checked") ?> >
- expires()?"checked":"") ?> >printDateChooser(($document->expires()?$document->getExpires():-1), "exp");?> -
- -

-"> -

- -
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.SetReviewersApprovers.php b/views/blue/class.SetReviewersApprovers.php deleted file mode 100644 index c7e64274a..000000000 --- a/views/blue/class.SetReviewersApprovers.php +++ /dev/null @@ -1,245 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for SetReviewersApprovers view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_SetReviewersApprovers extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - $content = $this->params['version']; - $enableadminrevapp = $this->params['enableadminrevapp']; - $enableownerrevapp = $this->params['enableownerrevapp']; - $enableselfrevapp = $this->params['enableselfrevapp']; - - $overallStatus = $content->getStatus(); - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - $this->contentHeading(getMLText("change_assignments")); - - // Retrieve a list of all users and groups that have review / approve privileges. - $docAccess = $folder->getReadAccessList($enableadminrevapp, $enableownerrevapp); - - // Retrieve list of currently assigned reviewers and approvers, along with - // their latest status. - $reviewStatus = $content->getReviewStatus(); - $approvalStatus = $content->getApprovalStatus(); - - // Index the review results for easy cross-reference with the Approvers List. - $reviewIndex = array("i"=>array(), "g"=>array()); - foreach ($reviewStatus as $i=>$rs) { - if ($rs["type"]==0) { - $reviewIndex["i"][$rs["required"]] = array("status"=>$rs["status"], "idx"=>$i); - } elseif ($rs["type"]==1) { - $reviewIndex["g"][$rs["required"]] = array("status"=>$rs["status"], "idx"=>$i); - } - } - - // Index the approval results for easy cross-reference with the Approvers List. - $approvalIndex = array("i"=>array(), "g"=>array()); - foreach ($approvalStatus as $i=>$rs) { - if ($rs["type"]==0) { - $approvalIndex["i"][$rs["required"]] = array("status"=>$rs["status"], "idx"=>$i); - } elseif ($rs["type"]==1) { - $approvalIndex["g"][$rs["required"]] = array("status"=>$rs["status"], "idx"=>$i); - } - } -?> - -contentContainerStart(); ?> - -
- -contentSubHeading(getMLText("update_reviewers"));?> - -
:
-
-
    -getMandatoryReviewers(); - foreach ($docAccess["users"] as $usr) { - $mandatory=false; - foreach ($res as $r) if ($r['reviewerUserID']==$usr->getID()) $mandatory=true; - - if ($mandatory){ - - print "
  • ". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName())." <".$usr->getEmail().">"; - print ""; - - } elseif (isset($reviewIndex["i"][$usr->getID()])) { - - switch ($reviewIndex["i"][$usr->getID()]["status"]) { - case 0: - print "
  • ".htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName()); - break; - case -2: - print "
  • ".htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName()); - break; - default: - print "
  • ".htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName()); - break; - } - } else { - if (!$enableselfrevapp && $usr->getID()==$user->getID()) continue; - print "
  • ". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName()); - } - } -?> -
-
-
:
-
-
    -getID()) $mandatory=true; - - if ($mandatory){ - - print "
  • ".htmlspecialchars($group->getName()); - print ""; - - } elseif (isset($reviewIndex["g"][$group->getID()])) { - - switch ($reviewIndex["g"][$group->getID()]["status"]) { - case 0: - print "
  • ".htmlspecialchars($group->getName()); - break; - case -2: - print "
  • ".htmlspecialchars($group->getName()); - break; - default: - print "
  • ".htmlspecialchars($group->getName()); - break; - } - } - else { - print "
  • ".htmlspecialchars($group->getName()); - } - } -?> -
-
- -contentSubHeading(getMLText("update_approvers"));?> - -
:
-
-
    -getMandatoryApprovers(); - - foreach ($docAccess["users"] as $usr) { - - $mandatory=false; - foreach ($res as $r) if ($r['approverUserID']==$usr->getID()) $mandatory=true; - - if ($mandatory){ - - print "
  • ". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName())." <".$usr->getEmail().">"; - print ""; - - } elseif (isset($approvalIndex["i"][$usr->getID()])) { - - switch ($approvalIndex["i"][$usr->getID()]["status"]) { - case 0: - print "
  • ".htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName()); - break; - case -2: - print "
  • ".htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName()); - break; - default: - print "
  • ".htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName()); - break; - } - } else { - if (!$enableselfrevapp && $usr->getID()==$user->getID()) continue; - print "
  • ". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName()); - } - } -?> -
-
-
:
-
-
    -getID()) $mandatory=true; - - if ($mandatory){ - - print "
  • ".htmlspecialchars($group->getName()); - print ""; - - } elseif (isset($approvalIndex["g"][$group->getID()])) { - - switch ($approvalIndex["g"][$group->getID()]["status"]) { - case 0: - print "
  • ".htmlspecialchars($group->getName()); - break; - case -2: - print "
  • ".htmlspecialchars($group->getName()); - break; - default: - print "
  • ".htmlspecialchars($group->getName()); - break; - } - } - else { - print "
  • ".htmlspecialchars($group->getName()); - } - } -?> -
-
- -

- - -"> -

-
-contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.Settings.php b/views/blue/class.Settings.php deleted file mode 100644 index d88861404..000000000 --- a/views/blue/class.Settings.php +++ /dev/null @@ -1,523 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for Settings view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_Settings extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $settings = $this->params['settings']; - - $this->htmlStartPage(getMLText("admin_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - $this->contentHeading(getMLText("settings")); - $this->contentContainerStart(); - -?> - - - -
- -_configFilePath)) { - echo "

".getMLText("settings_notwritable")."

"; -} else { -?> - " /> - - - -
+
-
- - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - "> - - - - - - "> - - - - "> - - - "> - - -
:
:
:_printDisclaimer) echo "checked" ?> />
: - -
: - -
:_strictFormCheck) echo "checked" ?> />
:
:_enableConverting) echo "checked" ?> />
:_enableEmail) echo "checked" ?> />
:_enableUsersView) echo "checked" ?> />
:_enableFullSearch) echo "checked" ?> />
:
:_enableFolderTree) echo "checked" ?> />
: - -
: - -
:_enableCalendar) echo "checked" ?> />
: - -
: - -
-
-
-
+
-
- - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - "> - - - - "> - - - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - - - - - - "> - - - - "> - - - - "> - - - - "> - - - - "> - - - - - - - "> - - - - "> - - - - "> - - - - -
:
:
:
:
:
:
:
:_logFileEnable) echo "checked" ?> />
: - -
:_enableLargeFileUpload) echo "checked" ?> />
:
:_enableGuestLogin) echo "checked" ?> />
:_restricted) echo "checked" ?> />
:_enableUserImage) echo "checked" ?> />
:_disableSelfEdit) echo "checked" ?> />
:_enablePasswordForgotten) echo "checked" ?> />
:
: - -
:
:
:
:
:
:
:
:
:
:
:
:
:
:
-
- -
-
+
- - -
- - -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.Statistic.php b/views/blue/class.Statistic.php deleted file mode 100644 index d9596f937..000000000 --- a/views/blue/class.Statistic.php +++ /dev/null @@ -1,232 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for Statistic view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_Statistic extends SeedDMS_Blue_Style { - var $dms; - var $folder_count; - var $document_count; - var $file_count; - var $storage_size; - - function getAccessColor($mode) { /* {{{ */ - if ($mode == M_NONE) - return "gray"; - else if ($mode == M_READ) - return "green"; - else if ($mode == M_READWRITE) - return "blue"; - else // if ($mode == M_ALL) - return "red"; - } /* }}} */ - - function printFolder($folder) { /* {{{ */ - $this->folder_count++; - $folder_size=0; - $doc_count=0; - - $color = $folder->inheritsAccess() ? "black" : $this->getAccessColor($folder->getDefaultAccess()); - - print "
  • "; - print "getID()."\">".htmlspecialchars($folder->getName()) .""; - - $owner = $folder->getOwner(); - $color = $this->getAccessColor(M_ALL); - print " [".htmlspecialchars($owner->getFullName())."] "; - - if (! $folder->inheritsAccess()) - $this->printAccessList($folder); - - $subFolders = $folder->getSubFolders(); - $documents = $folder->getDocuments(); - - print "
      "; - - foreach ($subFolders as $sub) $folder_size += $this->printFolder($sub); - foreach ($documents as $document){ - $doc_count++; - $folder_size += $this->printDocument($document); - } - - print "
    "; - - print "".SeedDMS_Core_File::format_filesize($folder_size).", ".$doc_count." ".getMLText("documents")."\n"; - - print "
  • "; - - return $folder_size; - } /* }}} */ - - function printDocument($document) { /* {{{ */ - $this->document_count++; - - $local_file_count=0; - $folder_size=0; - - if (file_exists($this->dms->contentDir.$document->getDir())) { - $handle = opendir($this->dms->contentDir.$document->getDir()); - while ($entry = readdir($handle) ) { - if (is_dir($this->dms->contentDir.$document->getDir().$entry)) continue; - else{ - $local_file_count++; - $folder_size += filesize($this->dms->contentDir.$document->getDir().$entry); - } - - } - closedir($handle); - } - $this->storage_size += $folder_size; - - $color = $document->inheritsAccess() ? "black" : $this->getAccessColor($document->getDefaultAccess()); - print "
  • "; - print "getID()."\">".htmlspecialchars($document->getName()).""; - - $owner = $document->getOwner(); - $color = $this->getAccessColor(M_ALL); - print " [".htmlspecialchars($owner->getFullName())."] "; - - if (! $document->inheritsAccess()) $this->printAccessList($document); - - print "".SeedDMS_Core_File::format_filesize($folder_size).", ".$local_file_count." ".getMLText("files")."\n"; - - print "
  • "; - - $this->file_count += $local_file_count; - return $folder_size; - } /* }}} */ - - function printAccessList($obj) { /* {{{ */ - $accessList = $obj->getAccessList(); - if (count($accessList["users"]) == 0 && count($accessList["groups"]) == 0) - return; - - print " ("; - - for ($i = 0; $i < count($accessList["groups"]); $i++) - { - $group = $accessList["groups"][$i]->getGroup(); - $color = $this->getAccessColor($accessList["groups"][$i]->getMode()); - print "".htmlspecialchars($group->getName()).""; - if ($i+1 < count($accessList["groups"]) || count($accessList["users"]) > 0) - print ", "; - } - for ($i = 0; $i < count($accessList["users"]); $i++) - { - $user = $accessList["users"][$i]->getUser(); - $color = $this->getAccessColor($accessList["users"][$i]->getMode()); - print "".htmlspecialchars($user->getFullName()).""; - if ($i+1 < count($accessList["users"])) - print ", "; - } - print ")"; - } /* }}} */ - - function show() { /* {{{ */ - $this->dms = $this->params['dms']; - $user = $this->params['user']; - $rootfolder = $this->params['rootfolder']; - - $this->htmlStartPage(getMLText("folders_and_documents_statistic")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - - $this->folder_count=0; - $this->document_count=0; - $this->file_count=0; - $this->storage_size=0; -?> - - - - -contentHeading(getMLText("folders_and_documents_statistic")); -$this->contentContainerStart(); - -print ""; - -print ""; - -print "
    \n"; - -print "
      \n"; -print "
    • ".getMLText("access_inheritance")."
    • "; -print "
    • getAccessColor(M_ALL)."\">".getMLText("access_mode_all")."
    • "; -print "
    • getAccessColor(M_READWRITE)."\">".getMLText("access_mode_readwrite")."
    • "; -print "
    • getAccessColor(M_READ)."\">".getMLText("access_mode_read")."
    • "; -print "
    • getAccessColor(M_NONE)."\">".getMLText("access_mode_none")."
    • "; -print "
    \n"; - -print "
    \n"; - -print "
      \n"; -$this->printFolder($rootfolder); -print "
    \n"; - -print "
    "; - -print "
      \n"; -print "
    • ".getMLText("folders").": ".$this->folder_count."
    • \n"; -print "
    • ".getMLText("documents").": ".$this->document_count."
    • \n"; -print "
    • ".getMLText("files").": ".$this->file_count."
    • \n"; -print "
    • ".getMLText("storage_size").": ".formatted_size($this->storage_size)."
    • \n"; - -print "
    \n"; - -print "
    \n"; - -$this->contentContainerEnd(); -$this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.UpdateDocument.php b/views/blue/class.UpdateDocument.php deleted file mode 100644 index a1ed9f22b..000000000 --- a/views/blue/class.UpdateDocument.php +++ /dev/null @@ -1,251 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for UpdateDocument view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_UpdateDocument extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - $strictformcheck = $this->params['strictformcheck']; - $enablelargefileupload = $this->params['enablelargefileupload']; - $dropfolderdir = $this->params['dropfolderdir']; - $documentid = $document->getId(); - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); -?> - - - -contentHeading(getMLText("update_document")); - $this->contentContainerStart(); - - if ($document->isLocked()) { - - $lockingUser = $document->getLockingUser(); - - print "
    "; - - printMLText("update_locked_msg", array("username" => htmlspecialchars($lockingUser->getFullName()), "email" => $lockingUser->getEmail())); - - if ($lockingUser->getID() == $user->getID()) - printMLText("unlock_cause_locking_user"); - else if ($document->getAccessMode($user) == M_ALL) - printMLText("unlock_cause_access_mode_all"); - else - { - printMLText("no_update_cause_locked"); - print "
    "; - $this->contentContainerEnd(); - $this->htmlEndPage(); - exit; - } - - print "
    "; - } - - // Retrieve a list of all users and groups that have review / approve - // privileges. - $docAccess = $document->getApproversList(); -?> - - - - - - - - - - -
    getID()); ?>

    - - -
    - - - - - - - - - - - - - - - - - - - - - -getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all)); - if($attrdefs) { - foreach($attrdefs as $attrdef) { -?> - - - - - - - - - - - - - - -
    :
    :printDropFolderChooser("form1");?>
    : - -
    : - expires()) print " checked";?>>
    - expires()) print " checked";?>>printDateChooser(-1, "exp");?> -
    getName()); ?>:printAttributeEditField($attrdef, '') ?>
    - contentSubHeading(getMLText("assign_reviewers")); ?> - -
    :
    -
    -
      -getMandatoryReviewers(); - foreach ($docAccess["users"] as $usr) { - if ($usr->getID()==$user->getID()) continue; - $mandatory=false; - foreach ($res as $r) if ($r['reviewerUserID']==$usr->getID()) $mandatory=true; - - if ($mandatory) print "
    • ". htmlspecialchars($usr->getFullName())."
    • "; - else print "
    • ". htmlspecialchars($usr->getFullName())."
    • "; - } -?> -
    -
    -
    :
    -
    -
      -getID()) $mandatory=true; - - if ($mandatory) print "
    • ".htmlspecialchars($grp->getName())."
    • "; - else print "
    • ".htmlspecialchars($grp->getName())."
    • "; - } -?> -
    -
    - - contentSubHeading(getMLText("assign_approvers")); ?> - -
    :
    -
    -
      -getMandatoryApprovers(); - foreach ($docAccess["users"] as $usr) { - if ($usr->getID()==$user->getID()) continue; - - $mandatory=false; - foreach ($res as $r) if ($r['approverUserID']==$usr->getID()) $mandatory=true; - - if ($mandatory) print "
    • ". htmlspecialchars($usr->getFullName())."
    • "; - else print "
    • ". htmlspecialchars($usr->getFullName())."
    • "; - } -?> -
    -
    -
    :
    -
    -
      -getID()) $mandatory=true; - - if ($mandatory) print "
    • ".htmlspecialchars($grp->getName()); - else print "
    • ".htmlspecialchars($grp->getName()); - - } -?> -
    -
    -
    ">
    -
    - -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.UpdateDocument2.php b/views/blue/class.UpdateDocument2.php deleted file mode 100644 index 375edee86..000000000 --- a/views/blue/class.UpdateDocument2.php +++ /dev/null @@ -1,81 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for UpdateDocument2 view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_UpdateDocument2 extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - - $this->contentHeading(getMLText("update_document") . ": " . htmlspecialchars($document->getName())); - $this->contentContainerStart(); - - if ($document->isLocked()) { - - $lockingUser = $document->getLockingUser(); - - print "
    "; - - printMLText("update_locked_msg", array("username" => htmlspecialchars($lockingUser->getFullName()), "email" => htmlspecialchars($lockingUser->getEmail()))); - - if ($lockingUser->getID() == $user->getID()) - printMLText("unlock_cause_locking_user"); - else if ($document->getAccessMode($user) == M_ALL) - printMLText("unlock_cause_access_mode_all"); - else - { - printMLText("no_update_cause_locked"); - print "
    "; - $this->contentContainerEnd(); - $this->htmlEndPage(); - exit; - } - - print "
    "; - } - - // Retrieve a list of all users and groups that have review / approve - // privileges. - $docAccess = $document->getApproversList(); - - $this->printUploadApplet('../op/op.UpdateDocument2.php', array('folderid'=>$folder->getId(), 'documentid'=>$document->getId()), 1, array('version_comment'=>1)); - - $this->contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.UserDefaultKeywords.php b/views/blue/class.UserDefaultKeywords.php deleted file mode 100644 index 3024ad4fb..000000000 --- a/views/blue/class.UserDefaultKeywords.php +++ /dev/null @@ -1,178 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for UserDefaultKeywords view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_UserDefaultKeywords extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $categories = $this->params['categories']; - - $this->htmlStartPage(getMLText("edit_default_keywords")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("my_account"), "my_account"); -?> - -contentHeading(getMLText("edit_default_keywords")); - $this->contentContainerStart(); -?> - - - - - - -getOwner(); - if ($owner->getID() != $user->getID()) continue; - - print " - -
    : - -    - getID()."\" style=\"display : none;\">"; -?> - - - - - - - - - - - - - - - - - - - - "> - - - - -
    - -
    - contentSubHeading("");?> -
    : -
    getID()?>"> - - - - "> -
    -
    - contentSubHeading("");?> -
    : - getKeywordLists(); - if (count($lists) == 0) - print getMLText("no_default_keywords"); - else - foreach ($lists as $list) { -?> -
    getID().".".$list["id"]?>"> - - "> - - "> - " border="0"> - - &action=removekeywords">" border=0> -
    -
    - -
    "> - - - -
    -
    - - - -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.UserImage.php b/views/blue/class.UserImage.php deleted file mode 100644 index a00be75f6..000000000 --- a/views/blue/class.UserImage.php +++ /dev/null @@ -1,38 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for UserImage view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_UserImage extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - - } /* }}} */ -} -?> diff --git a/views/blue/class.UserList.php b/views/blue/class.UserList.php deleted file mode 100644 index 688bd5f63..000000000 --- a/views/blue/class.UserList.php +++ /dev/null @@ -1,106 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for UserList view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_UserList extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $allUsers = $this->params['allusers']; - $httproot = $this->params['httproot']; - - $this->htmlStartPage(getMLText("admin_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - $this->contentHeading(getMLText("user_list")); - $this->contentContainerStart(); - - foreach ($allUsers as $currUser) { - if ($currUser->isGuest()) - continue; - - $this->contentSubHeading(getMLText("user") . ": \"" . $currUser->getFullName() . "\""); -?> - - - - - - - - - - - - - - - - - - - - - - - - - -
    :getLogin();?>
    :getFullName();?>
    :getEmail();?>
    :getComment();?>
    : - getGroups(); - if (count($groups) == 0) { - printMLText("no_groups"); - } - else { - for ($j = 0; $j < count($groups); $j++) { - print $groups[$j]->getName(); - if ($j +1 < count($groups)) - print ", "; - } - } - ?> -
    : - hasImage()) - print ""; - else - printMLText("no_user_image"); - ?> -
    -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.UsrMgr.php b/views/blue/class.UsrMgr.php deleted file mode 100644 index dbb94e533..000000000 --- a/views/blue/class.UsrMgr.php +++ /dev/null @@ -1,423 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for UsrMgr view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_UsrMgr extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $seluser = $this->params['seluser']; - $users = $this->params['allusers']; - $groups = $this->params['allgroups']; - $passwordstrength = $this->params['passwordstrength']; - $passwordexpiration = $this->params['passwordexpiration']; - $httproot = $this->params['httproot']; - $enableuserimage = $this->params['enableuserimage']; - - $this->htmlStartPage(getMLText("admin_tools")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); - -?> - -contentHeading(getMLText("user_management")); - $this->contentContainerStart(); -?> - - - - - - - -getID()."\" style=\"display : none;\">"; - - $this->contentSubHeading(getMLText("user")." : ".htmlspecialchars($currUser->getLogin())); -?> - - - - contentSubHeading(getMLText("edit_user"));?> - - - - - -
    : - -   -
    - - - - - - - - - - - - - 0) { -?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    :
    :
     
    :
    : getPwdExpiration(); ?>
    :
    :
    :
    :
    :isHidden() ? " checked='checked'" : "");?>>
    :isDisabled() ? " checked='checked'" : "");?>>
    : -hasImage()) - print ""; - else - printMLText("no_user_image"); -?> -
    :
    : -
    :
    -
    -
      - getMandatoryReviewers(); - - foreach ($users as $usr) { - - if ($usr->isGuest() || ($usr->getID() == $currUser->getID())) - continue; - - $checked=false; - foreach ($res as $r) if ($r['reviewerUserID']==$usr->getID()) $checked=true; - - print "
    • ".htmlspecialchars($usr->getLogin())."
    • \n"; - } -?> -
    -
    -
    :
    -
    -
      - getID()) $checked=true; - - print "
    • ".htmlspecialchars($grp->getName())."
    • \n"; - } -?> -
    -
    -
    : -
    :
    -
    -
      -getMandatoryApprovers(); - foreach ($users as $usr) { - if ($usr->isGuest() || ($usr->getID() == $currUser->getID())) - continue; - - $checked=false; - foreach ($res as $r) if ($r['approverUserID']==$usr->getID()) $checked=true; - - print "
    • ".htmlspecialchars($usr->getLogin())."
    • \n"; - } -?> -
    -
    -
    :
    -
    -
      -getID()) $checked=true; - - print "
    • ".htmlspecialchars($grp->getName())."
    • \n"; - } -?> -
    -
    -
    ">
    - - - - - - - - -contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.UsrView.php b/views/blue/class.UsrView.php deleted file mode 100644 index 6f554e9c7..000000000 --- a/views/blue/class.UsrView.php +++ /dev/null @@ -1,86 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for UsrView view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_UsrView extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $users = $this->params['allusers']; - $enableuserimage = $this->params['enableuserimage']; - $httproot = $this->params['httproot']; - - $this->htmlStartPage(getMLText("my_account")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("my_account"), "my_account"); - - $this->contentHeading(getMLText("users")); - $this->contentContainerStart(); - - echo "\n"; - echo "\n\n"; - echo "\n"; - echo "\n"; - echo "\n"; - if ($enableuserimage) echo "\n"; - echo "\n\n"; - - foreach ($users as $currUser) { - - if ($currUser->isGuest()) - continue; - - if ($currUser->isHidden()=="1") continue; - - echo "\n"; - - print ""; - - print ""; - print ""; - - if ($enableuserimage){ - print ""; - } - - echo "\n"; - } - - echo "
    ".getMLText("name")."".getMLText("email")."".getMLText("comment")."".getMLText("user_image")."
    ".htmlspecialchars($currUser->getFullName())."getEmail())."\">".htmlspecialchars($currUser->getEmail())."".htmlspecialchars($currUser->getComment()).""; - if ($currUser->hasImage()) print ""; - else printMLText("no_user_image"); - print "
    \n"; - - $this->contentContainerEnd(); - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.ViewDocument.php b/views/blue/class.ViewDocument.php deleted file mode 100644 index 5f98e5951..000000000 --- a/views/blue/class.ViewDocument.php +++ /dev/null @@ -1,547 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for ViewDocument view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_ViewDocument extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $document = $this->params['document']; - $accessop = $this->params['accessobject']; - $viewonlinefiletypes = $this->params['viewonlinefiletypes']; - $documentid = $document->getId(); - - $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); - $this->globalNavigation($folder); - $this->contentStart(); - $this->pageNavigation(getFolderPathHTML($folder, true, $document), "view_document"); - $this->contentHeading(getMLText("document_infos")); - $this->contentContainerStart(); - - ?> - - isLocked()) { - $lockingUser = $document->getLockingUser(); - ?> - - - - - - - - - - - - - - - - - - - - - - - - - getAttributes(); - if($attributes) { - foreach($attributes as $attribute) { - $attrdef = $attribute->getAttributeDefinition(); - ?> - - - - - -
    $lockingUser->getEmail(), "username" => htmlspecialchars($lockingUser->getFullName())));?>
    : - getOwner(); - print "getEmail()."\">".htmlspecialchars($owner->getFullName()).""; - ?> -
    :getComment());?>
    :getDate()); ?>
    :getKeywords());?>
    : - getCategories(); - $ct = array(); - foreach($cats as $cat) - $ct[] = htmlspecialchars($cat->getName()); - echo implode(', ', $ct); - ?> -
    getName()); ?>:getValue()); ?>
    - contentContainerEnd(); - - $versions = $document->getContent(); - if(!$latestContent = $document->getLatestContent()) { - $this->contentHeading(getMLText("current_version")); - $this->contentContainerStart(); - print getMLText('document_content_missing'); - $this->contentContainerEnd(); - $this->htmlEndPage(); - exit; - } - - $status = $latestContent->getStatus(); - $reviewStatus = $latestContent->getReviewStatus(); - $approvalStatus = $latestContent->getApprovalStatus(); - - // verify if file exists - $file_exists=file_exists($dms->contentDir . $latestContent->getPath()); - - $this->contentHeading(getMLText("current_version")); - $this->contentContainerStart(); - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - - print ""; - - print ""; - - print ""; - print "\n
    ".getMLText("version")."".getMLText("file")."".getMLText("comment")."".getMLText("status")."
    ".$latestContent->getVersion()."
      \n"; - print "
    • ".$latestContent->getOriginalFileName() ."
    • \n"; - - if ($file_exists) - print "
    • ". formatted_size(filesize($dms->contentDir . $latestContent->getPath())) ." ".htmlspecialchars($latestContent->getMimeType())."
    • "; - else print "
    • ".getMLText("document_deleted")."
    • "; - - $updatingUser = $latestContent->getUser(); - print "
    • ".getMLText("uploaded_by")." getEmail()."\">".htmlspecialchars($updatingUser->getFullName())."
    • "; - print "
    • ".getLongReadableDate($latestContent->getDate())."
    • "; - - print "
    \n"; - print "
      \n"; - $attributes = $latestContent->getAttributes(); - if($attributes) { - foreach($attributes as $attribute) { - $attrdef = $attribute->getAttributeDefinition(); - print "
    • ".htmlspecialchars($attrdef->getName()).": ".htmlspecialchars($attribute->getValue())."
    • \n"; - } - } - print "
    \n"; - - print "
    ".htmlspecialchars($latestContent->getComment())."".getOverallStatusText($status["status"]); - if ( $status["status"]==S_DRAFT_REV || $status["status"]==S_DRAFT_APP || $status["status"]==S_EXPIRED ){ - print "
    hasExpired()?" class=\"warning\" ":"").">".(!$document->getExpires() ? getMLText("does_not_expire") : getMLText("expires").": ".getReadableDate($document->getExpires())).""; - } - print "
    "; - - print ""; - echo "
    \n"; - - print "\n"; - - if (is_array($reviewStatus) && count($reviewStatus)>0) { - - print ""; - - print "\n"; - print "\n"; - print "\n"; - print ""; - print "\n"; - print "\n"; - print "\n"; - - foreach ($reviewStatus as $r) { - $required = null; - $is_reviewer = false; - switch ($r["type"]) { - case 0: // Reviewer is an individual. - $required = $dms->getUser($r["required"]); - if (!is_object($required)) { - $reqName = getMLText("unknown_user")." '".$r["required"]."'"; - } - else { - $reqName = htmlspecialchars($required->getFullName()); - } - if($r["required"] == $user->getId()) - $is_reviewer = true; - break; - case 1: // Reviewer is a group. - $required = $dms->getGroup($r["required"]); - if (!is_object($required)) { - $reqName = getMLText("unknown_group")." '".$r["required"]."'"; - } - else { - $reqName = "".htmlspecialchars($required->getName()).""; - if($required->isMember($user) && ($user->getId() != $owner->getId())) - $is_reviewer = true; - } - break; - } - print "\n"; - print "\n"; - print ""; - print "\n"; - print "\n"; - print "\n"; - print "\n\n"; - } - } - - if (is_array($approvalStatus) && count($approvalStatus)>0) { - - print ""; - - print "\n"; - print "\n"; - print "\n"; - print ""; - print "\n"; - print "\n"; - print "\n"; - - foreach ($approvalStatus as $a) { - $required = null; - $is_approver = false; - switch ($a["type"]) { - case 0: // Approver is an individual. - $required = $dms->getUser($a["required"]); - if (!is_object($required)) { - $reqName = getMLText("unknown_user")." '".$a["required"]."'"; - } - else { - $reqName = htmlspecialchars($required->getFullName()); - } - if($a["required"] == $user->getId()) - $is_approver = true; - break; - case 1: // Approver is a group. - $required = $dms->getGroup($a["required"]); - if (!is_object($required)) { - $reqName = getMLText("unknown_group")." '".$a["required"]."'"; - } - else { - $reqName = "".htmlspecialchars($required->getName()).""; - } - if($required->isMember($user) && ($user->getId() != $owner->getId())) - $is_approver = true; - break; - } - print "\n"; - print "\n"; - print ""; - print "\n"; - print "\n"; - print "\n"; - print "\n\n"; - } - } - - print "
    \n"; - $this->contentSubHeading(getMLText("reviewers")); - print "
    ".getMLText("name")."".getMLText("last_update")."".getMLText("comment")."".getMLText("status")."
    ".$reqName."
    • ".$r["date"]."
    • "; - /* $updateUser is the user who has done the review */ - $updateUser = $dms->getUser($r["userID"]); - print "
    • ".(is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()) : "unknown user id '".$r["userID"]."'")."
    ".htmlspecialchars($r["comment"])."".getReviewStatusText($r["status"])."
    \n"; - $this->contentSubHeading(getMLText("approvers")); - print "
    ".getMLText("name")."".getMLText("last_update")."".getMLText("comment")."".getMLText("status")."
    ".$reqName."
    • ".$a["date"]."
    • "; - /* $updateUser is the user who has done the approval */ - $updateUser = $dms->getUser($a["userID"]); - print "
    • ".(is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()) : "unknown user id '".$a["userID"]."'")."
    ".htmlspecialchars($a["comment"])."".getApprovalStatusText($a["status"])."
    \n"; - - $this->contentContainerEnd(); - - $this->contentHeading(getMLText("previous_versions")); - $this->contentContainerStart(); - - if (count($versions)>1) { - - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - - for ($i = count($versions)-2; $i >= 0; $i--) { - $version = $versions[$i]; - $vstat = $version->getStatus(); - - // verify if file exists - $file_exists=file_exists($dms->contentDir . $version->getPath()); - - print "\n"; - print "\n"; - print "\n"; - print ""; - print ""; - print "\n\n"; - } - print "\n
    ".getMLText("version")."".getMLText("file")."".getMLText("comment")."".getMLText("status")."
    ".$version->getVersion()."
      \n"; - print "
    • ".$version->getOriginalFileName()."
    • \n"; - if ($file_exists) print "
    • ". formatted_size(filesize($dms->contentDir . $version->getPath())) ." ".htmlspecialchars($version->getMimeType())."
    • "; - else print "
    • ".getMLText("document_deleted")."
    • "; - $updatingUser = $version->getUser(); - print "
    • ".getMLText("uploaded_by")." getEmail()."\">".htmlspecialchars($updatingUser->getFullName())."
    • "; - print "
    • ".getLongReadableDate($version->getDate())."
    • "; - print "
    \n"; - print "
      \n"; - $attributes = $version->getAttributes(); - if($attributes) { - foreach($attributes as $attribute) { - $attrdef = $attribute->getAttributeDefinition(); - print "
    • ".htmlspecialchars($attrdef->getName()).": ".htmlspecialchars($attribute->getValue())."
    • \n"; - } - } - print "
    \n"; - print "
    ".htmlspecialchars($version->getComment())."".getOverallStatusText($vstat["status"]).""; - print ""; - print "
    \n"; - } - else printMLText("no_previous_versions"); - - $this->contentContainerEnd(); - - $this->contentHeading(getMLText("linked_files")); - $this->contentContainerStart(); - - $files = $document->getDocumentFiles(); - - if (count($files) > 0) { - - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - - foreach($files as $file) { - - $file_exists=file_exists($dms->contentDir . $file->getPath()); - - $responsibleUser = $file->getUser(); - - print ""; - print ""; - - print ""; - - print ""; - - print ""; - } - print "\n
    ".getMLText("file")."".getMLText("comment")."
      \n"; - print "
    • ".$file->getOriginalFileName() ."
    • \n"; - if ($file_exists) - print "
    • ". filesize($dms->contentDir . $file->getPath()) ." bytes ".htmlspecialchars($file->getMimeType())."
    • "; - else print "
    • ".htmlspecialchars($file->getMimeType())." - ".getMLText("document_deleted")."
    • "; - - print "
    • ".getMLText("uploaded_by")." getEmail()."\">".htmlspecialchars($responsibleUser->getFullName())."
    • "; - print "
    • ".getLongReadableDate($file->getDate())."
    • "; - - print "
    ".htmlspecialchars($file->getComment()).""; - if (($document->getAccessMode($user) == M_ALL)||($file->getUserID()==$user->getID())) - print "
    getID()."\" />
    "; - print "
    \n"; - - } - else printMLText("no_attached_files"); - - if ($document->getAccessMode($user) >= M_READWRITE){ - print "
    "; - print "\n"; - } - $this->contentContainerEnd(); - - - $this->contentHeading(getMLText("linked_documents")); - $this->contentContainerStart(); - $links = $document->getDocumentLinks(); - $links = SeedDMS_Core_DMS::filterDocumentLinks($user, $links); - - if (count($links) > 0) { - - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - - foreach($links as $link) { - $responsibleUser = $link->getUser(); - $targetDoc = $link->getTarget(); - - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - } - print "\n
    ".getMLText("comment")."".getMLText("document_link_by")."
    getID()."\" class=\"linklist\">".htmlspecialchars($targetDoc->getName())."".htmlspecialchars($targetDoc->getComment())."".htmlspecialchars($responsibleUser->getFullName()); - if (($user->getID() == $responsibleUser->getID()) || ($document->getAccessMode($user) == M_ALL )) - print "
    ".getMLText("document_link_public").":".(($link->isPublic()) ? getMLText("yes") : getMLText("no")); - print "
    "; - if (($user->getID() == $responsibleUser->getID()) || ($document->getAccessMode($user) == M_ALL )) - print "
    ".createHiddenFieldWithKey('removedocumentlink')."getID()."\" />
    "; - print "
    \n"; - } - else printMLText("no_linked_files"); - - if (!$user->isGuest()){ - ?> -
    -
    - - - - - - - getAccessMode($user) >= M_READWRITE) { - print ""; - print ""; - } - ?> - - - -
    :printDocumentChooser("form1");?>
    ".getMLText("document_link_public")."
      "; - print "
    • " . getMLText("yes")."
    • "; - print "
    • " . getMLText("no")."
    • "; - print "
    ">
    -
    - contentContainerEnd(); - - $this->contentEnd(); - $this->htmlEndPage(); - - } /* }}} */ -} -?> diff --git a/views/blue/class.ViewEvent.php b/views/blue/class.ViewEvent.php deleted file mode 100644 index 87d048a25..000000000 --- a/views/blue/class.ViewEvent.php +++ /dev/null @@ -1,100 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for ViewEvent view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_ViewEvent extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $event = $this->params['event']; - - $this->htmlStartPage(getMLText("calendar")); - $this->globalNavigation(); - $this->pageNavigation(getMLText("calendar"), "calendar"); - - $this->contentHeading(getMLText("event_details")); - $this->contentContainerStart(); - - $u=$dms->getUser($event["userID"]); - - echo ""; - - echo ""; - echo ""; - echo ""; - echo ""; - - echo ""; - echo ""; - echo ""; - echo ""; - - echo ""; - echo ""; - echo ""; - echo ""; - - echo ""; - echo ""; - echo ""; - echo ""; - - echo ""; - echo ""; - echo ""; - echo ""; - - echo ""; - echo ""; - echo ""; - echo ""; - - echo "
    ".getMLText("name").": ".htmlspecialchars($event["name"])."
    ".getMLText("comment").": ".htmlspecialchars($event["comment"])."
    ".getMLText("from").": ".getReadableDate($event["start"])."
    ".getMLText("to").": ".getReadableDate($event["stop"])."
    ".getMLText("last_update").": ".getLongReadableDate($event["date"])."
    ".getMLText("user").": ".(is_object($u)?htmlspecialchars($u->getFullName()):getMLText("unknown_user"))."
    "; - - $this->contentContainerEnd(); - - if (($user->getID()==$event["userID"])||($user->isAdmin())){ - - $this->contentHeading(getMLText("edit")); - $this->contentContainerStart(); - - print ""; - - $this->contentContainerEnd(); - } - - $this->htmlEndPage(); - } /* }}} */ -} -?> diff --git a/views/blue/class.ViewFolder.php b/views/blue/class.ViewFolder.php deleted file mode 100644 index 19f2c9a97..000000000 --- a/views/blue/class.ViewFolder.php +++ /dev/null @@ -1,161 +0,0 @@ - - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ - -/** - * Include parent class - */ -require_once("class.BlueStyle.php"); - -/** - * Class which outputs the html page for ViewFolder view - * - * @category DMS - * @package SeedDMS - * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann - * @copyright Copyright (C) 2002-2005 Markus Westphal, - * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, - * 2010-2012 Uwe Steinmann - * @version Release: @package_version@ - */ -class SeedDMS_View_ViewFolder extends SeedDMS_Blue_Style { - - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $folder = $this->params['folder']; - $orderby = $this->params['orderby']; - $enableFolderTree = $this->params['enableFolderTree']; - $showtree = $this->params['showtree']; - - $folderid = $folder->getId(); - - $this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName())))); - - $this->globalNavigation($folder); - $this->contentStart(); - $this->pageNavigation(getFolderPathHTML($folder), "view_folder", $folder); - - if ($enableFolderTree) $this->printTreeNavigation($folderid,$showtree); - - $this->contentHeading(getMLText("folder_infos")); - - $owner = $folder->getOwner(); - $this->contentContainerStart(); - print "\n\n". - "\n". - "\n\n\n". - "\n". - "\n\n"; - $attributes = $folder->getAttributes(); - if($attributes) { - foreach($attributes as $attribute) { - $attrdef = $attribute->getAttributeDefinition(); - ?> - - - - - \n"; - $this->contentContainerEnd(); - - $this->contentHeading(getMLText("folder_contents")); - $this->contentContainerStart(); - - $subFolders = $folder->getSubFolders($orderby); - $subFolders = SeedDMS_Core_DMS::filterAccess($subFolders, $user, M_READ); - $documents = $folder->getDocuments($orderby); - $documents = SeedDMS_Core_DMS::filterAccess($documents, $user, M_READ); - - if ((count($subFolders) > 0)||(count($documents) > 0)){ - print "
    ".getMLText("owner").":getEmail())."\">".htmlspecialchars($owner->getFullName())."". - "
    ".getMLText("comment").":".htmlspecialchars($folder->getComment())."
    getName()); ?>:getValue()); ?>
    "; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - } - else printMLText("empty_notify_list"); - - - foreach($subFolders as $subFolder) { - - $owner = $subFolder->getOwner(); - $comment = $subFolder->getComment(); - if (strlen($comment) > 50) $comment = substr($comment, 0, 47) . "..."; - $subsub = $subFolder->getSubFolders(); - $subsub = SeedDMS_Core_DMS::filterAccess($subsub, $user, M_READ); - $subdoc = $subFolder->getDocuments(); - $subdoc = SeedDMS_Core_DMS::filterAccess($subdoc, $user, M_READ); - - print ""; - // print ""; - print "\n"; - print "\n"; - print ""; - print ""; - print ""; - print ""; - print "\n"; - } - - foreach($documents as $document) { - - $owner = $document->getOwner(); - $comment = $document->getComment(); - if (strlen($comment) > 50) $comment = substr($comment, 0, 47) . "..."; - $docID = $document->getID(); - if($latestContent = $document->getLatestContent()) { - $version = $latestContent->getVersion(); - $status = $latestContent->getStatus(); - - print ""; - - if (file_exists($dms->contentDir . $latestContent->getPath())) - print ""; - else print ""; - - print "\n"; - print ""; - print ""; - print ""; - print ""; - print "\n"; - } - } - - if ((count($subFolders) > 0)||(count($documents) > 0)) echo "\n
    ".getMLText("name")."".getMLText("owner")."".getMLText("status")."".getMLText("version")."".getMLText("comment")."
    getID()."&showtree=".$showtree."\">getID()."&showtree=".$showtree."\">" . htmlspecialchars($subFolder->getName()) . "".htmlspecialchars($owner->getFullName())."".count($subsub)." ".getMLText("folders").", ".count($subdoc)." ".getMLText("documents")."".htmlspecialchars($comment)."
    getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">" . htmlspecialchars($document->getName()) . "".htmlspecialchars($owner->getFullName()).""; - if ( $document->isLocked() ) { - print "getImgPath("lock.png")."\" title=\"". getMLText("locked_by").": ".htmlspecialchars($document->getLockingUser()->getFullName())."\"> "; - } - print getOverallStatusText($status["status"])."".$version."".htmlspecialchars($comment)."
    \n"; - - $this->contentContainerEnd(); - - if ($enableFolderTree) print ""; - - $this->contentEnd(); - - $this->htmlEndPage(); - } /* }}} */ -} - -?> diff --git a/views/bootstrap/class.Indexer.php b/views/bootstrap/class.Indexer.php index 4f08405f8..aa3a459ce 100644 --- a/views/bootstrap/class.Indexer.php +++ b/views/bootstrap/class.Indexer.php @@ -76,9 +76,9 @@ function check_queue() { success: function(data) { // console.log('success ' + data.data); if(data.success) { - $('#status_'+data.data).html('done'); + $('#status_'+data.data).html(''); } else { - $('#status_'+data.data).html('error'); + $('#status_'+data.data).html(''); noty({ text: data.message, type: (data.success) ? 'success' : 'error', @@ -109,7 +109,7 @@ $(document).ready( function() { $('.indexme').each(function(index) { var element = $(this); var docid = element.data('docid'); - element.html('Pending'); + element.html(''); funcArray.push(docid); }); docstoindex = funcArray.length; @@ -137,7 +137,7 @@ $(document).ready( function() { /* If the document wasn't indexed before then just add it */ $lucenesearch = new $indexconf['Search']($index); if(!($hit = $lucenesearch->getDocument($document->getId()))) { - echo " getID()."\" class=\"indexme indexstatus\" data-docid=\"".$document->getID()."\">Waiting"; + echo " getID()."\" class=\"indexme indexstatus\" data-docid=\"".$document->getID()."\">".getMLText('index_waiting').""; /* try { $index->addDocument(new $indexconf['IndexedDocument']($dms, $document, $this->converters ? $this->converters : null, false, $this->timeout)); @@ -162,7 +162,7 @@ $(document).ready( function() { echo $indent."getID()."\" class=\"indexstatus\" data-docid=\"".$document->getID()."\">document unchanged"; } else { $index->delete($hit->id); - echo " getID()."\" class=\"indexme indexstatus\" data-docid=\"".$document->getID()."\">Waiting"; + echo " getID()."\" class=\"indexme indexstatus\" data-docid=\"".$document->getID()."\">".getMLText('index_waiting').""; /* try { $index->addDocument(new $indexconf['IndexedDocument']($dms, $document, $this->converters ? $this->converters : null, false, $this->timeout)); @@ -211,13 +211,13 @@ li {line-height: 20px;}
    -
    Overall progress
    +
    -
    Indexing tasks in queue
    +
    tree($dms, $index, $indexconf, $folder);