mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
Merge branch 'seeddms-5.0.x' into seeddms-5.1.x
This commit is contained in:
commit
a4fdc3ad95
|
@ -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
|
||||
|
|
|
@ -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' => '',
|
||||
|
|
|
@ -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' => '',
|
||||
|
|
|
@ -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' => '',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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' => '',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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 <a href="%s">página de subida</a> 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',
|
||||
|
|
|
@ -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é',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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' => '사용자 저장',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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' => 'Пользователь сохранён',
|
||||
|
|
|
@ -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' => '',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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' => 'Користувача збережено',
|
||||
|
|
|
@ -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' => '',
|
||||
|
|
|
@ -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' => '',
|
||||
|
|
77
op/op.PdfPreview.php
Normal file
77
op/op.PdfPreview.php
Normal file
|
@ -0,0 +1,77 @@
|
|||
<?php
|
||||
// MyDMS. Document Management System
|
||||
// Copyright (C) 2002-2005 Markus Westphal
|
||||
// Copyright (C) 2006-2008 Malcolm Cowe
|
||||
// Copyright (C) 2010 Matteo Lucarelli
|
||||
// Copyright (C) 2010-2016 Uwe Steinmann
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation; either version 2 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
include("../inc/inc.Settings.php");
|
||||
include("../inc/inc.LogInit.php");
|
||||
include("../inc/inc.Utils.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.Init.php");
|
||||
include("../inc/inc.Extension.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
include("../inc/inc.Authentication.php");
|
||||
|
||||
/**
|
||||
* Include class to preview documents
|
||||
*/
|
||||
require_once("SeedDMS/Preview.php");
|
||||
|
||||
$documentid = $_GET["documentid"];
|
||||
if (!isset($documentid) || !is_numeric($documentid) || intval($documentid)<1) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$document = $dms->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);
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
Copyright (C) 2006 Malcolm Cowe
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td height="25">
|
||||
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="editfolder" valign="center"><b><?php echo $title ?>:</b></td>
|
||||
<td class="editfolder" align="left"><?php echo $menu ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
|
@ -1,41 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
Copyright (C) 2006 Malcolm Cowe
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" height="600">
|
||||
<tr>
|
||||
<td height="30" valign="center" class="header1"><?php echo $title2?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="hline" height="1"><img src="images/dummy.gif" height="1" width="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="53" valign="top">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><img src="<?php echo printImgPath("path_left.gif")?>" width="53" height="19" border="0" alt=""></td>
|
||||
<td class="path"><?php echo $txtpath?></td>
|
||||
<td><img src="<?php echo printImgPath("path_right.gif")?>" width="42" height="19" border="0" alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<ul>
|
|
@ -1,26 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
Copyright (C) 2006 Malcolm Cowe
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
|
@ -1,34 +0,0 @@
|
|||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
Copyright (C) 2006 Malcolm Cowe
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td height="25">
|
||||
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="editfolder" valign="center"><b><?php echo $title ?>:</b></td>
|
||||
<td class="editfolder" align="left"><?php echo $menu ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
|
@ -1,41 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
Copyright (C) 2006 Malcolm Cowe
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" height="600">
|
||||
<tr>
|
||||
<td height="30" valign="center" class="header1"><?php echo $title2?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="hline" height="1"><img src="images/dummy.gif" height="1" width="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="53" valign="top">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><img src="<?php echo printImgPath("path_left.gif")?>" width="53" height="19" border="0" alt=""></td>
|
||||
<td class="path"><?php echo $txtpath?></td>
|
||||
<td><img src="<?php echo printImgPath("path_right.gif")?>" width="42" height="19" border="0" alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<ul>
|
|
@ -1,21 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
Copyright (C) 2006 Malcolm Cowe
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
</body></html>
|
|
@ -1,26 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
Copyright (C) 2006 Malcolm Cowe
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo $title?></title>
|
||||
<link rel="STYLESHEET" type="text/css" href="<?php echo $stylesheet?>">
|
||||
</head>
|
||||
<body>
|
|
@ -1,42 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
Copyright (C) 2006 Malcolm Cowe
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td class="boxHeader"> <?php echo $header?>:</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="boxBorder">
|
||||
<table cellpadding="10" width="100%">
|
||||
<tr>
|
||||
<td>
|
|
@ -1,35 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
Copyright (C) 2006 Malcolm Cowe
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
<table cellpadding="0" cellspacing="0" width="600" border="0">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td class="boxHeader"> <?php echo $header?>:</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="boxBorder">
|
||||
<table cellpadding="10" width="100%">
|
||||
<tr>
|
||||
<td>
|
|
@ -1,26 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
Copyright (C) 2006 Malcolm Cowe
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
<table class='titlebar' width='100%' cellpadding='5' cellspacing='0'>
|
||||
<tr>
|
||||
<td class='titlebar'><?php echo $title?></td>
|
||||
<td align='right' class='titlebar'><?php echo $menu?></td>
|
||||
</tr>
|
||||
</table>
|
|
@ -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;
|
||||
}
|
|
@ -1,45 +0,0 @@
|
|||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="45" height="25" background="<?php echo printImgPath("line_vert_edit.gif")?>">
|
||||
|
||||
</td>
|
||||
<td height="25">
|
||||
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="editfolder" valign="center">
|
||||
<b><?php echo $title ?>:</b>
|
||||
</td>
|
||||
<td class="editfolder" align="left">
|
||||
<?php echo $menu ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="45" background="<?php echo printImgPath("line_vert.gif")?>">
|
||||
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
|
@ -1,67 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" height="600">
|
||||
<tr>
|
||||
<td width="5" height="30" rowspan="6">
|
||||
|
||||
</td>
|
||||
<td width="200" height="30" align="right" class="header1">
|
||||
<?php echo $title1?>
|
||||
</td>
|
||||
<td width="45" height="30" background="<?php echo printImgPath("line_vert.gif")?>">
|
||||
|
||||
</td>
|
||||
<td height="30" valign="center" class="header1">
|
||||
<?php echo $title2?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="hline"
|
||||
height="1"><img src="images/dummy.gif"
|
||||
height="1" width="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="4" align="center" valign="top" class="subfolderlist">
|
||||
<p>
|
||||
<?php printFolderTree($folder->getPath(), 0, $document, false); ?>
|
||||
</td>
|
||||
<td width="45" height="53" background="<?php echo printImgPath("line_vert.gif")?>">
|
||||
|
||||
</td>
|
||||
<td height="53" valign="top">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><img src="<?php echo printImgPath("path_left.gif")?>"
|
||||
width="53" height="19" border="0" alt=""></td>
|
||||
<td class="path">
|
||||
<?php echo $txtpath?>
|
||||
</td>
|
||||
<td><img src="<?php echo printImgPath("path_right.gif")?>"
|
||||
width="42" height="19" border="0" alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="45" background="<?php echo printImgPath("line_vert.gif")?>">
|
||||
|
||||
</td>
|
||||
<td valign="top">
|
||||
<ul>
|
|
@ -1,25 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
|
@ -1,46 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="45" height="25" background="<?php echo printImgPath("line_vert_edit.gif")?>">
|
||||
|
||||
</td>
|
||||
<td height="25">
|
||||
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="editfolder" valign="center">
|
||||
<b><?php echo $title ?>:</b>
|
||||
</td>
|
||||
<td class="editfolder" align="left">
|
||||
<?php echo $menu ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="45" background="<?php echo printImgPath("line_vert.gif")?>">
|
||||
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
|
@ -1,67 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" height="600">
|
||||
<tr>
|
||||
<td width="5" height="30" rowspan="6">
|
||||
|
||||
</td>
|
||||
<td width="200" height="30" align="right" class="header1">
|
||||
<?php echo $title1?>
|
||||
</td>
|
||||
<td width="45" height="30" background="<?php echo printImgPath("line_vert.gif")?>">
|
||||
|
||||
</td>
|
||||
<td height="30" valign="center" class="header1">
|
||||
<?php echo $title2?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="hline"
|
||||
height="1"><img src="images/dummy.gif"
|
||||
height="1" width="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="4" align="center" valign="top" class="subfolderlist">
|
||||
<p>
|
||||
<?php printFolderTree($folder->getPath(), 0, $folder, true); ?>
|
||||
</td>
|
||||
<td width="45" height="53" background="<?php echo printImgPath("line_vert.gif")?>">
|
||||
|
||||
</td>
|
||||
<td height="53" valign="top">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><img src="<?php echo printImgPath("path_left.gif")?>"
|
||||
width="53" height="19" border="0" alt=""></td>
|
||||
<td class="path">
|
||||
<?php echo $txtpath?>
|
||||
</td>
|
||||
<td><img src="<?php echo printImgPath("path_right.gif")?>"
|
||||
width="42" height="19" border="0" alt=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="45" background="<?php echo printImgPath("line_vert.gif")?>">
|
||||
|
||||
</td>
|
||||
<td valign="top">
|
||||
<ul>
|
|
@ -1,20 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
</body></html>
|
|
@ -1,25 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo $title?></title>
|
||||
<link rel="STYLESHEET" type="text/css" href="<?php echo $stylesheet?>">
|
||||
</head>
|
||||
<body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
|
|
@ -1,42 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td class="boxHeader"> <?php echo $header?>:</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"><img src="images/dummy.gif" width="30" height="1" border="0" alt=""></td>
|
||||
<td class="boxBorder">
|
||||
<table cellpadding="10" width="100%">
|
||||
<tr>
|
||||
<td>
|
|
@ -1,35 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
<table cellpadding="0" cellspacing="0" width="600" border="0">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td class="boxHeader"> <?php echo $header?>:</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"><img src="images/dummy.gif" width="30" height="1" border="0" alt=""></td>
|
||||
<td class="boxBorder">
|
||||
<table cellpadding="10" width="100%">
|
||||
<tr>
|
||||
<td>
|
|
@ -1,27 +0,0 @@
|
|||
|
||||
<!--
|
||||
MyDMS. Document Management System
|
||||
Copyright (C) 2002-2005 Markus Westphal
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
-->
|
||||
<table class='titlebar' width='100%' cellpadding='5' cellspacing='0'>
|
||||
<tr>
|
||||
<td class='titlebar'><?php echo $title?></td>
|
||||
<td align='right' class='titlebar'>
|
||||
<?php echo $menu?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
|
@ -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;
|
||||
}
|
|
@ -1,287 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of AddDocument view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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);
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
//if (document.form1.userfile[].value == "") msg += "<?php printMLText("js_no_file");?>\n";
|
||||
|
||||
<?php
|
||||
if ($strictformcheck) {
|
||||
?>
|
||||
if(!document.form1.name.disabled){
|
||||
if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
}
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (document.form1.keywords.value == "") msg += "<?php printMLText("js_no_keywords");?>\n";
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != ""){
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
function addFiles()
|
||||
{
|
||||
var li = document.createElement('li');
|
||||
li.innerHTML = '<input type="File" name="userfile[]" size="60">';
|
||||
document.getElementById('files').appendChild(li);
|
||||
// document.getElementById("files").innerHTML += '<br><input type="File" name="userfile[]" size="60">';
|
||||
document.form1.name.disabled=true;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$this->contentHeading(getMLText("add_document"));
|
||||
$this->contentContainerStart();
|
||||
|
||||
// Retrieve a list of all users and groups that have review / approve
|
||||
// privileges.
|
||||
$docAccess = $folder->getReadAccessList($enableadminrevapp, $enableownerrevapp);
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="warning"><?php echo getMLText("max_upload_size")." : ".ini_get( "upload_max_filesize"); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
if($enablelargefileupload) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?php printf(getMLText('link_alt_updatedocument'), "out.AddMultiDocument.php?folderid=".$folderid."&showtree=".showtree()); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<?php $this->contentSubHeading(getMLText("document_infos")); ?>
|
||||
|
||||
<form action="../op/op.AddDocument.php" enctype="multipart/form-data" method="post" name="form1" onsubmit="return checkForm();">
|
||||
<?php echo createHiddenFieldWithKey('adddocument'); ?>
|
||||
<input type="hidden" name="folderid" value="<?php print $folderid; ?>">
|
||||
<input type="hidden" name="showtree" value="<?php echo showtree();?>">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("name");?>:</td>
|
||||
<td><input type="text" name="name" size="60"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("comment");?>:</td>
|
||||
<td><textarea name="comment" rows="3" cols="80"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("keywords");?>:</td>
|
||||
<td>
|
||||
<textarea name="keywords" rows="1" cols="80"></textarea><br>
|
||||
<a href="javascript:chooseKeywords('form1.keywords');"><?php printMLText("use_default_keywords");?></a>
|
||||
<script language="JavaScript">
|
||||
var openDlg;
|
||||
|
||||
function chooseKeywords(target) {
|
||||
openDlg = open("out.KeywordChooser.php?target="+target, "openDlg", "width=500,height=400,scrollbars=yes,resizable=yes");
|
||||
}
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("categories")?>:</td>
|
||||
<td><?php $this->printCategoryChooser("form1");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("sequence");?>:</td>
|
||||
<td><?php $this->printSequenceChooser($folder->getDocuments());?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_document, SeedDMS_Core_AttributeDefinition::objtype_all));
|
||||
if($attrdefs) {
|
||||
foreach($attrdefs as $attrdef) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo htmlspecialchars($attrdef->getName()); ?></td>
|
||||
<td><?php $this->printAttributeEditField($attrdef, '') ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><?php printMLText("expires");?>:</td>
|
||||
<td>
|
||||
<input type="radio" name="expires" value="false" checked><?php printMLText("does_not_expire");?><br>
|
||||
<input type="radio" name="expires" value="true"><?php $this->printDateChooser(-1, "exp");?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<?php $this->contentSubHeading(getMLText("version_info")); ?>
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("version");?>:</td>
|
||||
<td><input type="text" name="reqversion" value="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("local_file");?>:</td>
|
||||
<td>
|
||||
<a href="javascript:addFiles()"><?php printMLtext("add_multiple_files") ?></a>
|
||||
<ol id="files">
|
||||
<li><input type="file" name="userfile[]" size="60"></li>
|
||||
</ol>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($dropfolderdir) { ?>
|
||||
<tr>
|
||||
<td><?php printMLText("dropfolder_file");?>:</td>
|
||||
<td><?php $this->printDropFolderChooser("form1");?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td><?php printMLText("comment_for_current_version");?>:</td>
|
||||
<td><textarea name="version_comment" rows="3" cols="80"></textarea></td>
|
||||
</tr>
|
||||
<?php
|
||||
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all));
|
||||
if($attrdefs) {
|
||||
foreach($attrdefs as $attrdef) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo htmlspecialchars($attrdef->getName()); ?></td>
|
||||
<td><?php $this->printAttributeEditField($attrdef, '', 'attributes_version') ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<?php $this->contentSubHeading(getMLText("assign_reviewers")); ?>
|
||||
|
||||
<div class="cbSelectTitle"><?php printMLText("individuals");?>:</div>
|
||||
<div class="cbSelectContainer">
|
||||
<ul class="cbSelectList">
|
||||
<?php
|
||||
$res=$user->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 "<li class=\"cbSelectItem\"><input type='checkbox' checked='checked' disabled='disabled'>". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName())."</li>";
|
||||
else print "<li class=\"cbSelectItem\"><input id='revInd".$usr->getID()."' type='checkbox' name='indReviewers[]' value='". $usr->getID() ."'>". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName())."</li>";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="cbSelectTitle"><?php printMLText("groups");?>:</div>
|
||||
<div class="cbSelectContainer">
|
||||
<ul class="cbSelectList">
|
||||
<?php
|
||||
foreach ($docAccess["groups"] as $grp) {
|
||||
|
||||
$mandatory=false;
|
||||
foreach ($res as $r) if ($r['reviewerGroupID']==$grp->getID()) $mandatory=true;
|
||||
|
||||
if ($mandatory) print "<li class=\"cbSelectItem\"><input type='checkbox' checked='checked' disabled='disabled'>".htmlspecialchars($grp->getName())."</li>";
|
||||
else print "<li class=\"cbSelectItem\"><input id='revGrp".$grp->getID()."' type='checkbox' name='grpReviewers[]' value='". $grp->getID() ."'>".htmlspecialchars($grp->getName())."</li>";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php $this->contentSubHeading(getMLText("assign_approvers")); ?>
|
||||
|
||||
<div class="cbSelectTitle"><?php printMLText("individuals");?>:</div>
|
||||
<div class="cbSelectContainer">
|
||||
<ul class="cbSelectList">
|
||||
<?php
|
||||
$res=$user->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 "<li class=\"cbSelectItem\"><input type='checkbox' checked='checked' disabled='disabled'>". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName());
|
||||
else print "<li class=\"cbSelectItem\"><input id='appInd".$usr->getID()."' type='checkbox' name='indApprovers[]' value='". $usr->getID() ."'>". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName());
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="cbSelectTitle"><?php printMLText("groups");?>:</div>
|
||||
<div class="cbSelectContainer">
|
||||
<ul class="cbSelectList">
|
||||
<?php
|
||||
foreach ($docAccess["groups"] as $grp) {
|
||||
|
||||
$mandatory=false;
|
||||
foreach ($res as $r) if ($r['approverGroupID']==$grp->getID()) $mandatory=true;
|
||||
|
||||
if ($mandatory) print "<li class=\"cbSelectItem\"><input type='checkbox' checked='checked' disabled='disabled'>".htmlspecialchars($grp->getName());
|
||||
else print "<li class=\"cbSelectItem\"><input id='appGrp".$grp->getID()."' type='checkbox' name='grpApprovers[]' value='". $grp->getID() ."'>".htmlspecialchars($grp->getName());
|
||||
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p><?php printMLText("add_doc_reviewer_approver_warning")?></p>
|
||||
<p><input type="Submit" value="<?php printMLText("add_document");?>"></p>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,93 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of AddEvent view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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();
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
<?php
|
||||
if (isset($settings->_strictFormCheck) && $settings->_strictFormCheck) {
|
||||
?>
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<form action="../op/op.AddEvent.php" name="form1" onsubmit="return checkForm();" method="POST">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("from");?>:</td>
|
||||
<td><?php $this->printDateChooser(-1, "from");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("to");?>:</td>
|
||||
<td><?php $this->printDateChooser(-1, "to");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="inputDescription"><?php printMLText("name");?>:</td>
|
||||
<td><input name="name" size="60"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="inputDescription"><?php printMLText("comment");?>:</td>
|
||||
<td><textarea name="comment" rows="4" cols="80"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><br><input type="submit" value="<?php printMLText("add_event");?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,107 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of AddFile view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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");
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.userfile.value == "") msg += "<?php printMLText("js_no_file");?>\n";
|
||||
if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
<?php
|
||||
if (isset($settings->_strictFormCheck) && $settings->_strictFormCheck) {
|
||||
?>
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
$this->contentHeading(getMLText("linked_files"));
|
||||
$this->contentContainerStart();
|
||||
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="warning"><?php echo getMLText("max_upload_size")." : ".ini_get( "upload_max_filesize"); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printf(getMLText('link_alt_updatedocument'), "out.AddFile2.php?documentid=".$document->getId()); ?></td>
|
||||
</tr>
|
||||
</table><br>
|
||||
|
||||
<form action="../op/op.AddFile.php" enctype="multipart/form-data" method="post" name="form1" onsubmit="return checkForm();">
|
||||
<input type="Hidden" name="documentid" value="<?php print $document->getId(); ?>">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("local_file");?>:</td>
|
||||
<td><input type="File" name="userfile" size="60"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("name");?>:</td>
|
||||
<td><input type="text" name="name" size="60"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("comment");?>:</td>
|
||||
<td><textarea name="comment" rows="4" cols="80"></textarea></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><input type="Submit" value="<?php printMLText("add");?>"></p>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,53 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of AddFile2 view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,69 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of AddMultiDocument view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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);
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
var openDlg;
|
||||
function chooseKeywords(target) {
|
||||
openDlg = open("out.KeywordChooser.php?target="+target, "openDlg", "width=500,height=400,scrollbars=yes,resizable=yes");
|
||||
}
|
||||
function chooseCategory(form, cats) {
|
||||
openDlg = open("out.CategoryChooser.php?form="+form+"&cats="+cats, "openDlg", "width=480,height=480,scrollbars=yes,resizable=yes,status=yes");
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$this->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();
|
||||
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,108 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of AddSubFolder view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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();
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
<?php
|
||||
if ($strictformcheck) {
|
||||
?>
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<form action="../op/op.AddSubFolder.php" name="form1" onsubmit="return checkForm();" method="POST">
|
||||
<?php echo createHiddenFieldWithKey('addsubfolder'); ?>
|
||||
<input type="Hidden" name="folderid" value="<?php print $folder->getId();?>">
|
||||
<input type="Hidden" name="showtree" value="<?php echo showtree();?>">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="inputDescription"><?php printMLText("name");?>:</td>
|
||||
<td><input type="text" name="name" size="60"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="inputDescription"><?php printMLText("comment");?>:</td>
|
||||
<td><textarea name="comment" rows="4" cols="80"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="inputDescription"><?php printMLText("sequence");?>:</td>
|
||||
<td><?php $this->printSequenceChooser($folder->getSubFolders());?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_folder, SeedDMS_Core_AttributeDefinition::objtype_all));
|
||||
if($attrdefs) {
|
||||
foreach($attrdefs as $attrdef) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo htmlspecialchars($attrdef->getName()); ?>:</td>
|
||||
<td><?php $this->printAttributeEditField($attrdef, '') ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="2"><br><input type="Submit" value="<?php printMLText("add_subfolder");?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,74 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of AdminTools view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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();
|
||||
?>
|
||||
<ul>
|
||||
<li class="first"><a href="../out/out.Statistic.php"><?php echo getMLText("folders_and_documents_statistic")?></a></li>
|
||||
<li><a href="../out/out.BackupTools.php"><?php echo getMLText("backup_tools")?></a></li>
|
||||
<?php
|
||||
if ($logfileenable) echo "<li><a href=\"../out/out.LogManagement.php\">".getMLText("log_management")."</a></li>";
|
||||
?>
|
||||
<li><a href="../out/out.UsrMgr.php"><?php echo getMLText("user_management")?></a></li>
|
||||
<li><a href="../out/out.GroupMgr.php"><?php echo getMLText("group_management")?></a></li>
|
||||
<li><a href="../out/out.DefaultKeywords.php"><?php echo getMLText("global_default_keywords")?></a></li>
|
||||
<li><a href="../out/out.Categories.php"><?php echo getMLText("global_document_categories")?></a></li>
|
||||
<li><a href="../out/out.AttributeMgr.php"><?php echo getMLText("global_attributedefinitions")?></a></li>
|
||||
<li><a href="../out/out.Info.php"><?php echo getMLText("version_info")?></a></li>
|
||||
<?php
|
||||
if($enablefullsearch) {
|
||||
?>
|
||||
<li><a href="../out/out.Indexer.php"><?php echo getMLText("update_fulltext_index")?></a></li>
|
||||
<li><a href="../out/out.CreateIndex.php"><?php echo getMLText("create_fulltext_index")?></a></li>
|
||||
<li><a href="../out/out.IndexInfo.php"><?php echo getMLText("fulltext_info")?></a></li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<li><a href="../out/out.ObjectCheck.php"><?php echo getMLText("objectcheck")?></a></li>
|
||||
<li><a href="../out/out.Settings.php"><?php echo getMLText("settings")?></a></li>
|
||||
</ul>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,197 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of ApprovalSummary view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 "<table class=\"folderView\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("owner")."</th>\n";
|
||||
print "<th>".getMLText("status")."</th>\n";
|
||||
print "<th>".getMLText("version")."</th>\n";
|
||||
print "<th>".getMLText("last_update")."</th>\n";
|
||||
print "<th>".getMLText("expires")."</th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
$printheader = false;
|
||||
}
|
||||
|
||||
print "<tr>\n";
|
||||
print "<td><a href=\"out.DocumentVersionDetail.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>";
|
||||
print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>";
|
||||
print "<td>".getOverallStatusText($docIdx[$st["documentID"]][$st["version"]]["status"])."</td>";
|
||||
print "<td>".$st["version"]."</td>";
|
||||
print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"]) ."</td>";
|
||||
print "<td>".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";
|
||||
print "</tr>\n";
|
||||
}
|
||||
if ($st["status"]!=-2) {
|
||||
$iRev[] = $st["documentID"];
|
||||
}
|
||||
}
|
||||
if (!$printheader) {
|
||||
echo "</tbody>\n</table>\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 "<table class=\"folderView\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("owner")."</th>\n";
|
||||
print "<th>".getMLText("status")."</th>\n";
|
||||
print "<th>".getMLText("version")."</th>\n";
|
||||
print "<th>".getMLText("last_update")."</th>\n";
|
||||
print "<th>".getMLText("expires")."</th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
$printheader = false;
|
||||
}
|
||||
|
||||
print "<tr>\n";
|
||||
print "<td><a href=\"out.DocumentVersionDetail.php?documentid=".$st["documentID"]."&version=".$st["version"]."\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>";
|
||||
print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>";
|
||||
print "<td>".getOverallStatusText($docIdx[$st["documentID"]][$st["version"]]["status"])."</td>";
|
||||
print "<td>".$st["version"]."</td>";
|
||||
print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"]) ."</td>";
|
||||
print "<td>".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";
|
||||
print "</tr>\n";
|
||||
}
|
||||
}
|
||||
if (!$printheader) {
|
||||
echo "</tbody>\n</table>\n";
|
||||
}else{
|
||||
printMLText("empty_notify_list");
|
||||
}
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,182 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of ApproveDocument view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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"));
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function checkIndForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.approvalStatus.value == "") msg += "<?php printMLText("js_no_approval_status");?>\n";
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
function checkGrpForm()
|
||||
{
|
||||
msg = "";
|
||||
// if (document.form1.approvalGroup.value == "") msg += "<?php printMLText("js_no_approval_group");?>\n";
|
||||
if (document.form1.approvalStatus.value == "") msg += "<?php printMLText("js_no_approval_status");?>\n";
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
|
||||
$this->contentContainerStart();
|
||||
|
||||
// Display the Approval form.
|
||||
if ($approvalStatus['type'] == 0) {
|
||||
if($approvalStatus["status"]!=0) {
|
||||
|
||||
print "<table class=\"folderView\"><thead><tr>";
|
||||
print "<th>".getMLText("status")."</th>";
|
||||
print "<th>".getMLText("comment")."</th>";
|
||||
print "<th>".getMLText("last_update")."</th>";
|
||||
print "</tr></thead><tbody><tr>";
|
||||
print "<td>";
|
||||
printApprovalStatusText($approvalStatus["status"]);
|
||||
print "</td>";
|
||||
print "<td>".htmlspecialchars($approvalStatus["comment"])."</td>";
|
||||
$indUser = $dms->getUser($approvalStatus["userID"]);
|
||||
print "<td>".$approvalStatus["date"]." - ". $indUser->getFullname() ."</td>";
|
||||
print "</tr></tbody></table><br>\n";
|
||||
}
|
||||
?>
|
||||
<form method="post" action="../op/op.ApproveDocument.php" name="form1" onsubmit="return checkIndForm();">
|
||||
<?php echo createHiddenFieldWithKey('approvedocument'); ?>
|
||||
<table>
|
||||
<tr><td><?php printMLText("comment")?>:</td>
|
||||
<td><textarea name="comment" cols="80" rows="4"></textarea>
|
||||
</td></tr>
|
||||
<tr><td><?php printMLText("approval_status")?>:</td>
|
||||
<td><select name="approvalStatus">
|
||||
<?php if($approvalStatus['status'] != 1) { ?>
|
||||
<option value='1'><?php printMLText("status_approved")?></option>
|
||||
<?php } ?>
|
||||
<?php if($approvalStatus['status'] != -1) { ?>
|
||||
<option value='-1'><?php printMLText("rejected")?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</td></tr><tr><td></td><td>
|
||||
<input type='hidden' name='approvalType' value='ind'/>
|
||||
<input type='hidden' name='documentid' value='<?php echo $document->getId() ?>'/>
|
||||
<input type='hidden' name='version' value='<?php echo $latestContent->getVersion(); ?>'/>
|
||||
<input type='submit' name='indApproval' value='<?php printMLText("submit_approval")?>'/>
|
||||
</td></tr></table>
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
else if ($approvalStatus['type'] == 1) {
|
||||
|
||||
if($approvalStatus["status"]!=0) {
|
||||
|
||||
print "<table class=\"folderView\"><thead><tr>";
|
||||
print "<th>".getMLText("status")."</th>";
|
||||
print "<th>".getMLText("comment")."</th>";
|
||||
print "<th>".getMLText("last_update")."</th>";
|
||||
print "</tr></thead><tbody><tr>";
|
||||
print "<td>";
|
||||
printApprovalStatusText($approvalStatus["status"]);
|
||||
print "</td>";
|
||||
print "<td>".htmlspecialchars($approvalStatus["comment"])."</td>";
|
||||
$indUser = $dms->getUser($approvalStatus["userID"]);
|
||||
print "<td>".$approvalStatus["date"]." - ". htmlspecialchars($indUser->getFullname()) ."</td>";
|
||||
print "</tr></tbody></table><br>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
<form method="POST" action="../op/op.ApproveDocument.php" name="form1" onsubmit="return checkGrpForm();">
|
||||
<?php echo createHiddenFieldWithKey('approvedocument'); ?>
|
||||
<table>
|
||||
<tr><td><?php printMLText("comment")?>:</td>
|
||||
<td><textarea name="comment" cols="80" rows="4"></textarea>
|
||||
</td></tr>
|
||||
<tr><td><?php printMLText("approval_status")?>:</td>
|
||||
<td>
|
||||
<select name="approvalStatus">
|
||||
<?php if($approvalStatus['status'] != 1) { ?>
|
||||
<option value='1'><?php printMLText("status_approved")?></option>
|
||||
<?php } ?>
|
||||
<?php if($approvalStatus['status'] != -1) { ?>
|
||||
<option value='-1'><?php printMLText("rejected")?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</td></tr>
|
||||
<tr><td></td><td>
|
||||
<input type='hidden' name='approvalGroup' value="<?php echo $approvalStatus['required']; ?>" />
|
||||
<input type='hidden' name='approvalType' value='grp'/>
|
||||
<input type='hidden' name='documentid' value='<?php echo $document->getId() ?>'/>
|
||||
<input type='hidden' name='version' value='<?php echo $latestContent->getVersion(); ?>'/>
|
||||
<input type='submit' name='groupApproval' value='<?php printMLText("submit_approval")?>'/></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,255 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of AttributeMgr view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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"));
|
||||
?>
|
||||
|
||||
<script language="JavaScript">
|
||||
obj = -1;
|
||||
function showAttributeDefinitions(selectObj) {
|
||||
if (obj != -1)
|
||||
obj.style.display = "none";
|
||||
|
||||
id = selectObj.options[selectObj.selectedIndex].value;
|
||||
if (id == -1)
|
||||
return;
|
||||
|
||||
obj = document.getElementById("attrdefs" + id);
|
||||
obj.style.display = "";
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
$this->globalNavigation();
|
||||
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
||||
$this->contentHeading(getMLText("attrdef_management"));
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php echo getMLText("selection")?>:</td>
|
||||
<td>
|
||||
<select onchange="showAttributeDefinitions(this)" id="selector">
|
||||
<option value="-1"><?php echo getMLText("choose_attrdef")?>
|
||||
<option value="0"><?php echo getMLText("new_attrdef")?>
|
||||
|
||||
<?php
|
||||
$selected=0;
|
||||
$count=2;
|
||||
if($attrdefs) {
|
||||
foreach ($attrdefs as $attrdef) {
|
||||
|
||||
if (isset($_GET["attrdefid"]) && $attrdef->getID()==$_GET["attrdefid"]) $selected=$count;
|
||||
switch($attrdef->getObjType()) {
|
||||
case SeedDMS_Core_AttributeDefinition::objtype_all:
|
||||
$ot = getMLText("all");
|
||||
break;
|
||||
case SeedDMS_Core_AttributeDefinition::objtype_folder:
|
||||
$ot = getMLText("folder");
|
||||
break;
|
||||
case SeedDMS_Core_AttributeDefinition::objtype_document:
|
||||
$ot = getMLText("document");
|
||||
break;
|
||||
case SeedDMS_Core_AttributeDefinition::objtype_documentcontent:
|
||||
$ot = getMLText("version");
|
||||
break;
|
||||
}
|
||||
print "<option value=\"".$attrdef->getID()."\">" . htmlspecialchars($attrdef->getName() ." (".$ot.")");
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
|
||||
<td id="attrdefs0" style="display : none;">
|
||||
<form action="../op/op.AttributeMgr.php" method="post">
|
||||
<?php echo createHiddenFieldWithKey('addattrdef'); ?>
|
||||
<input type="hidden" name="action" value="addattrdef">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("attrdef_name");?>:</td><td><input type="text" name="name"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("attrdef_objtype");?>:</td><td><select name="objtype"><option value="<?php echo SeedDMS_Core_AttributeDefinition::objtype_all ?>">All</option><option value="<?php echo SeedDMS_Core_AttributeDefinition::objtype_folder ?>">Folder</option><option value="<?php echo SeedDMS_Core_AttributeDefinition::objtype_document ?>"><?php printMLText("document"); ?></option><option value="<?php echo SeedDMS_Core_AttributeDefinition::objtype_documentcontent ?>"><?php printMLText("version"); ?></option></select>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("attrdef_type");?>:</td><td><select name="type"><option value="<?php echo SeedDMS_Core_AttributeDefinition::type_int ?>">Integer</option><option value="<?php echo SeedDMS_Core_AttributeDefinition::type_float ?>">Float</option><option value="<?php echo SeedDMS_Core_AttributeDefinition::type_string ?>">String</option><option value="<?php echo SeedDMS_Core_AttributeDefinition::type_boolean ?>">Boolean</option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("attrdef_multiple");?>:</td><td><input type="checkbox" value="1" name="multiple" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("attrdef_minvalues");?>:</td><td><input type="text" value="" name="minvalues" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("attrdef_maxvalues");?>:</td><td><input type="text" value="" name="maxvalues" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("attrdef_valueset");?>:</td><td><input type="text" value="" name="valueset" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="Submit" value="<?php printMLText("new_attrdef"); ?>">
|
||||
</form>
|
||||
</td>
|
||||
|
||||
<?php
|
||||
|
||||
if($attrdefs) {
|
||||
foreach ($attrdefs as $attrdef) {
|
||||
|
||||
print "<td id=\"attrdefs".$attrdef->getID()."\" style=\"display : none;\">";
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<?php
|
||||
if(!$attrdef->isUsed()) {
|
||||
?>
|
||||
<form style="display: inline-block;" method="post" action="../op/op.AttributeMgr.php" >
|
||||
<?php echo createHiddenFieldWithKey('removeattrdef'); ?>
|
||||
<input type="hidden" name="attrdefid" value="<?php echo $attrdef->getID()?>">
|
||||
<input type="hidden" name="action" value="removeattrdef">
|
||||
<input value="<?php echo getMLText("rm_attrdef")?>" type="submit">
|
||||
</form>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<p><?php echo getMLText('attrdef_in_use') ?></p>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<?php $this->contentSubHeading("");?>
|
||||
</td>
|
||||
</tr>
|
||||
<form action="../op/op.AttributeMgr.php" method="post">
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo createHiddenFieldWithKey('editattrdef'); ?>
|
||||
<input type="Hidden" name="action" value="editattrdef">
|
||||
<input type="Hidden" name="attrdefid" value="<?php echo $attrdef->getID()?>" />
|
||||
<?php printMLText("attrdef_name");?>:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="name" value="<?php echo htmlspecialchars($attrdef->getName()) ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php printMLText("attrdef_type");?>:
|
||||
</td>
|
||||
<td>
|
||||
<select name="type"><option value="<?php echo SeedDMS_Core_AttributeDefinition::type_int ?>" <?php if($attrdef->getType() == SeedDMS_Core_AttributeDefinition::type_int) echo "selected"; ?>>Integer</option><option value="<?php echo SeedDMS_Core_AttributeDefinition::type_float ?>" <?php if($attrdef->getType() == SeedDMS_Core_AttributeDefinition::type_float) echo "selected"; ?>>Float</option><option value="<?php echo SeedDMS_Core_AttributeDefinition::type_string ?>" <?php if($attrdef->getType() == SeedDMS_Core_AttributeDefinition::type_string) echo "selected"; ?>>String</option><option value="<?php echo SeedDMS_Core_AttributeDefinition::type_boolean ?>" <?php if($attrdef->getType() == SeedDMS_Core_AttributeDefinition::type_boolean) echo "selected"; ?>>Boolean</option></select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php printMLText("attrdef_objtype");?>:
|
||||
</td>
|
||||
<td>
|
||||
<select name="objtype"><option value="<?php echo SeedDMS_Core_AttributeDefinition::objtype_all ?>">All</option><option value="<?php echo SeedDMS_Core_AttributeDefinition::objtype_folder ?>" <?php if($attrdef->getObjType() == SeedDMS_Core_AttributeDefinition::objtype_folder) echo "selected"; ?>>Folder</option><option value="<?php echo SeedDMS_Core_AttributeDefinition::objtype_document ?>" <?php if($attrdef->getObjType() == SeedDMS_Core_AttributeDefinition::objtype_document) echo "selected"; ?>>Document</option><option value="<?php echo SeedDMS_Core_AttributeDefinition::objtype_documentcontent ?>" <?php if($attrdef->getObjType() == SeedDMS_Core_AttributeDefinition::objtype_documentcontent) echo "selected"; ?>>Document content</option></select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php printMLText("attrdef_multiple");?>:
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" value="1" name="multiple" <?php echo $attrdef->getMultipleValues() ? "checked" : "" ?>/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php printMLText("attrdef_minvalues");?>:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" value="<?php echo $attrdef->getMinValues() ?>" name="minvalues" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php printMLText("attrdef_maxvalues");?>:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" value="<?php echo $attrdef->getMaxValues() ?>" name="maxvalues" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php printMLText("attrdef_valueset");?>:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" value="<?php echo $attrdef->getValueSet() ?>" name="valueset" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type="submit" value="<?php printMLText("save");?>">
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></table>
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
sel = document.getElementById("selector");
|
||||
sel.selectedIndex=<?php print $selected ?>;
|
||||
showAttributeDefinitions(sel);
|
||||
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,195 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of BackupTools view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 "<p>".getMLText("versioning_file_creation_warning")."</p>\n";
|
||||
|
||||
print "<form action=\"../op/op.CreateVersioningFiles.php\" name=\"form1\">";
|
||||
$this->printFolderChooser("form1",M_READWRITE);
|
||||
print "<input type='submit' name='' value='".getMLText("versioning_file_creation")."'/>";
|
||||
print "</form>\n";
|
||||
|
||||
$this->contentContainerEnd();
|
||||
|
||||
// archive creation ////////////////////////////////////////////////////////////
|
||||
|
||||
$this->contentHeading(getMLText("archive_creation"));
|
||||
$this->contentContainerStart();
|
||||
print "<p>".getMLText("archive_creation_warning")."</p>\n";
|
||||
|
||||
print "<form action=\"../op/op.CreateFolderArchive.php\" name=\"form2\">";
|
||||
$this->printFolderChooser("form2",M_READWRITE);
|
||||
print "<input type=\"checkbox\" name=\"human_readable\" value=\"1\">".getMLText("human_readable");
|
||||
print "<input type='submit' name='' value='".getMLText("archive_creation")."'/>";
|
||||
print "</form>\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 "<table class=\"folderView\">\n";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th></th>\n";
|
||||
print "<th>".getMLText("folder")."</th>\n";
|
||||
print "<th>".getMLText("creation_date")."</th>\n";
|
||||
print "<th>".getMLText("file_size")."</th>\n";
|
||||
print "<th></th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
$print_header=false;
|
||||
}
|
||||
|
||||
$folderid=substr($entry,strpos($entry,"_")+1);
|
||||
$folder=$dms->getFolder((int)$folderid);
|
||||
|
||||
print "<tr>\n";
|
||||
print "<td><a href=\"../op/op.Download.php?arkname=".$entry."\">".$entry."</a></td>\n";
|
||||
if (is_object($folder)) print "<td>".htmlspecialchars($folder->getName())."</td>\n";
|
||||
else print "<td>".getMLText("unknown_id")."</td>\n";
|
||||
print "<td>".getLongReadableDate(filectime($contentdir.$entry))."</td>\n";
|
||||
print "<td>".SeedDMS_Core_File::format_filesize(filesize($contentdir.$entry))."</td>\n";
|
||||
print "<td><ul class=\"actions\">";
|
||||
print "<li><a href=\"out.RemoveArchive.php?arkname=".$entry."\">".getMLText("backup_remove")."</a></li>";
|
||||
print "</ul></td>\n";
|
||||
print "</tr>\n";
|
||||
}
|
||||
|
||||
if ($print_header) printMLText("empty_notify_list");
|
||||
else print "</table>\n";
|
||||
|
||||
$this->contentContainerEnd();
|
||||
|
||||
// dump creation ///////////////////////////////////////////////////////////////
|
||||
|
||||
$this->contentHeading(getMLText("dump_creation"));
|
||||
$this->contentContainerStart();
|
||||
print "<p>".getMLText("dump_creation_warning")."</p>\n";
|
||||
|
||||
print "<form action=\"../op/op.CreateDump.php\" name=\"form4\">";
|
||||
print "<input type='submit' name='' value='".getMLText("dump_creation")."'/>";
|
||||
print "</form>\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 "<table class=\"folderView\">\n";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th></th>\n";
|
||||
print "<th>".getMLText("creation_date")."</th>\n";
|
||||
print "<th>".getMLText("file_size")."</th>\n";
|
||||
print "<th></th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
$print_header=false;
|
||||
}
|
||||
|
||||
print "<tr>\n";
|
||||
print "<td><a href=\"../op/op.Download.php?dumpname=".$entry."\">".$entry."</a></td>\n";
|
||||
print "<td>".getLongReadableDate(filectime($contentdir.$entry))."</td>\n";
|
||||
print "<td>".SeedDMS_Core_File::format_filesize(filesize($contentdir.$entry))."</td>\n";
|
||||
print "<td><ul class=\"actions\">";
|
||||
print "<li><a href=\"out.RemoveDump.php?dumpname=".$entry."\">".getMLText("dump_remove")."</a></li>";
|
||||
print "</ul></td>\n";
|
||||
print "</tr>\n";
|
||||
}
|
||||
|
||||
if ($print_header) printMLText("empty_notify_list");
|
||||
else print "</table>\n";
|
||||
|
||||
$this->contentContainerEnd();
|
||||
|
||||
// files deletion //////////////////////////////////////////////////////////////
|
||||
|
||||
$this->contentHeading(getMLText("files_deletion"));
|
||||
$this->contentContainerStart();
|
||||
print "<p>".getMLText("files_deletion_warning")."</p>\n";
|
||||
|
||||
print "<form action=\"../out/out.RemoveFolderFiles.php\" name=\"form3\">";
|
||||
$this->printFolderChooser("form3",M_READWRITE);
|
||||
print "<input type='submit' name='' value='".getMLText("files_deletion")."'/>";
|
||||
print "</form>\n";
|
||||
|
||||
$this->contentContainerEnd();
|
||||
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
File diff suppressed because it is too large
Load Diff
|
@ -1,335 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of Calendar view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 = "<table border=0>\n";
|
||||
|
||||
$s .= "<tr>\n";
|
||||
$s .= "<td align=\"center\" class=\"header\" colspan=\"7\"><a href=\"../out/out.Calendar.php?mode=m&year=".$year."&month=".$month."\">".$monthName."</a></td>\n"; ;
|
||||
$s .= "</tr>\n";
|
||||
|
||||
$s .= "<tr>\n";
|
||||
$s .= "<td class=\"header\">" . $this->dayNames[($startDay)%7] . "</td>\n";
|
||||
$s .= "<td class=\"header\">" . $this->dayNames[($startDay+1)%7] . "</td>\n";
|
||||
$s .= "<td class=\"header\">" . $this->dayNames[($startDay+2)%7] . "</td>\n";
|
||||
$s .= "<td class=\"header\">" . $this->dayNames[($startDay+3)%7] . "</td>\n";
|
||||
$s .= "<td class=\"header\">" . $this->dayNames[($startDay+4)%7] . "</td>\n";
|
||||
$s .= "<td class=\"header\">" . $this->dayNames[($startDay+5)%7] . "</td>\n";
|
||||
$s .= "<td class=\"header\">" . $this->dayNames[($startDay+6)%7] . "</td>\n";
|
||||
$s .= "</tr>\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 .= "<tr>\n";
|
||||
|
||||
for ($i = 0; $i < 7; $i++){
|
||||
|
||||
$class = ($year == $today["year"] && $month == $today["mon"] && $d == $today["mday"]) ? "today" : "";
|
||||
$s .= "<td class=\"$class\">";
|
||||
|
||||
if ($d > 0 && $d <= $daysInMonth){
|
||||
|
||||
$s .= "<a href=\"../out/out.Calendar.php?mode=w&year=".$year."&month=".$month."&day=".$d."\">".$d."</a>";
|
||||
}
|
||||
else $s .= " ";
|
||||
|
||||
$s .= "</td>\n";
|
||||
$d++;
|
||||
}
|
||||
$s .= "</tr>\n";
|
||||
}
|
||||
|
||||
$s .= "</table>\n";
|
||||
|
||||
return $s;
|
||||
} /* }}} */
|
||||
|
||||
function printYearTable($year) { /* {{{ */
|
||||
print "<table class=\"calendaryear\" border=\"0\">\n";
|
||||
print "<tr>";
|
||||
print "<td>" . $this->getMonthHTML(1 , $year) ."</td>\n";
|
||||
print "<td>" . $this->getMonthHTML(2 , $year) ."</td>\n";
|
||||
print "<td>" . $this->getMonthHTML(3 , $year) ."</td>\n";
|
||||
print "<td>" . $this->getMonthHTML(4 , $year) ."</td>\n";
|
||||
print "</tr>\n";
|
||||
print "<tr>\n";
|
||||
print "<td>" . $this->getMonthHTML(5 , $year) ."</td>\n";
|
||||
print "<td>" . $this->getMonthHTML(6 , $year) ."</td>\n";
|
||||
print "<td>" . $this->getMonthHTML(7 , $year) ."</td>\n";
|
||||
print "<td>" . $this->getMonthHTML(8 , $year) ."</td>\n";
|
||||
print "</tr>\n";
|
||||
print "<tr>\n";
|
||||
print "<td>" . $this->getMonthHTML(9 , $year) ."</td>\n";
|
||||
print "<td>" . $this->getMonthHTML(10, $year) ."</td>\n";
|
||||
print "<td>" . $this->getMonthHTML(11, $year) ."</td>\n";
|
||||
print "<td>" . $this->getMonthHTML(12, $year) ."</td>\n";
|
||||
print "</tr>\n";
|
||||
print "</table>\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 "<a href=\"../out/out.Calendar.php?mode=y&year=".($year-1)."\"><img src=\"".$this->getImgPath("m.png")."\" border=0></a> ";
|
||||
print "<a href=\"../out/out.Calendar.php?mode=y\"><img src=\"".$this->getImgPath("c.png")."\" border=0></a> ";
|
||||
print "<a href=\"../out/out.Calendar.php?mode=y&year=".($year+1)."\"><img src=\"".$this->getImgPath("p.png")."\" border=0></a> ";
|
||||
|
||||
$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 "<a href=\"../out/out.Calendar.php?mode=m&year=".($year)."&month=".($month-1)."\"><img src=\"".$this->getImgPath("m.png")."\" border=0></a> ";
|
||||
print "<a href=\"../out/out.Calendar.php?mode=m\"><img src=\"".$this->getImgPath("c.png")."\" border=0></a> ";
|
||||
print "<a href=\"../out/out.Calendar.php?mode=m&year=".($year)."&month=".($month+1)."\"><img src=\"".$this->getImgPath("p.png")."\" border=0></a> ";
|
||||
|
||||
$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 "<table class='calendarmonth'>\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 "<tr><td class='separator' colspan='".(count($events)+2)."'> </td></tr>\n";
|
||||
|
||||
// highlight today
|
||||
$class = ($year == $today["year"] && $month == $today["mon"] && $i == $today["mday"]) ? "todayHeader" : "header";
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td class='".$class."'><a href=\"../out/out.Calendar.php?mode=w&year=".($year)."&month=".($month)."&day=".($i)."\">".$i."</a></td>";
|
||||
echo "<td class='".$class."'><a href=\"../out/out.Calendar.php?mode=w&year=".($year)."&month=".($month)."&day=".($i)."\">".$this->dayNamesLong[$date["wday"]]."</a></td>";
|
||||
|
||||
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 "<td class='".$class."'><a href=\"../out/out.ViewEvent.php?id=".$event['id']."\">".htmlspecialchars($event['name'])."</a></td>";
|
||||
}else{
|
||||
print "<td class='".$class."'> </td>";
|
||||
}
|
||||
}
|
||||
|
||||
echo "</tr>\n";
|
||||
}
|
||||
echo "</table>\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 "<a href=\"../out/out.Calendar.php?mode=w&year=".($year)."&month=".($month)."&day=".($day-7)."\"><img src=\"".$this->getImgPath("m.png")."\" border=0></a> ";
|
||||
print "<a href=\"../out/out.Calendar.php?mode=w\"><img src=\"".$this->getImgPath("c.png")."\" border=0></a> ";
|
||||
print "<a href=\"../out/out.Calendar.php?mode=w&year=".($year)."&month=".($month)."&day=".($day+7)."\"><img src=\"".$this->getImgPath("p.png")."\" border=0></a> ";
|
||||
|
||||
echo "<table class='calendarweek'>\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 "<tr>";
|
||||
echo "<td class='".$class."'>".getReadableDate($i)."</td>";
|
||||
echo "<td class='".$class."'>".$this->dayNamesLong[$date["wday"]]."</td>";
|
||||
|
||||
if ($class=="todayHeader") $class="today";
|
||||
else $class="";
|
||||
|
||||
foreach ($events as $event){
|
||||
if (($event["start"]<=$i)&&($event["stop"]>=$i)){
|
||||
print "<td class='".$class."'><a href=\"../out/out.ViewEvent.php?id=".$event['id']."\">".htmlspecialchars($event['name'])."</a></td>";
|
||||
}else{
|
||||
print "<td class='".$class."'> </td>";
|
||||
}
|
||||
}
|
||||
|
||||
echo "</tr>\n";
|
||||
|
||||
$prev_day=$date["mday"];
|
||||
}
|
||||
echo "</table>\n";
|
||||
|
||||
$this->contentContainerEnd();
|
||||
}
|
||||
|
||||
$this->htmlEndPage();
|
||||
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,152 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of Categories view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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");
|
||||
?>
|
||||
|
||||
<script language="JavaScript">
|
||||
obj = -1;
|
||||
function showCategories(selectObj) {
|
||||
if (obj != -1)
|
||||
obj.style.display = "none";
|
||||
|
||||
id = selectObj.options[selectObj.selectedIndex].value;
|
||||
if (id == -1)
|
||||
return;
|
||||
|
||||
obj = document.getElementById("categories" + id);
|
||||
obj.style.display = "";
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
$this->contentHeading(getMLText("global_document_categories"));
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php echo getMLText("selection")?>:</td>
|
||||
<td>
|
||||
<select onchange="showCategories(this)" id="selector">
|
||||
<option value="-1"><?php echo getMLText("choose_category")?>
|
||||
<option value="0"><?php echo getMLText("new_document_category")?>
|
||||
|
||||
<?php
|
||||
|
||||
$selected=0;
|
||||
$count=2;
|
||||
foreach ($categories as $category) {
|
||||
|
||||
if (isset($_GET["categoryid"]) && $category->getID()==$_GET["categoryid"]) $selected=$count;
|
||||
print "<option value=\"".$category->getID()."\">" . htmlspecialchars($category->getName());
|
||||
$count++;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
|
||||
<td id="categories0" style="display : none;">
|
||||
<form action="../op/op.Categories.php" method="post">
|
||||
<?php echo createHiddenFieldWithKey('addcategory'); ?>
|
||||
<input type="Hidden" name="action" value="addcategory">
|
||||
<?php printMLText("name");?> : <input name="name">
|
||||
<input type="submit" value="<?php printMLText("new_document_category"); ?>">
|
||||
</form>
|
||||
</td>
|
||||
|
||||
<?php
|
||||
foreach ($categories as $category) {
|
||||
print "<td id=\"categories".$category->getID()."\" style=\"display : none;\">";
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<?php
|
||||
if(!$category->isUsed()) {
|
||||
?>
|
||||
<form style="display: inline-block;" method="post" action="../op/op.Categories.php" >
|
||||
<?php echo createHiddenFieldWithKey('removecategory'); ?>
|
||||
<input type="Hidden" name="categoryid" value="<?php echo $category->getID()?>">
|
||||
<input type="Hidden" name="action" value="removecategory">
|
||||
<input value="<?php echo getMLText("rm_document_category")?>" type="submit">
|
||||
</form>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<p><?php echo getMLText('category_in_use') ?></p>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<?php $this->contentSubHeading("");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo getMLText("name")?>:</td>
|
||||
<td>
|
||||
<form action="../op/op.Categories.php" method="post">
|
||||
<?php echo createHiddenFieldWithKey('editcategory'); ?>
|
||||
<input type="Hidden" name="action" value="editcategory">
|
||||
<input type="Hidden" name="categoryid" value="<?php echo $category->getID()?>">
|
||||
<input name="name" type="text" value="<?php echo htmlspecialchars($category->getName()) ?>">
|
||||
<input type="submit" value="<?php printMLText("save");?>">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr></table>
|
||||
|
||||
<script language="JavaScript">
|
||||
sel = document.getElementById("selector");
|
||||
sel.selectedIndex=<?php print $selected ?>;
|
||||
showCategories(sel);
|
||||
</script>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,97 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of CategoryChooser view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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"));
|
||||
?>
|
||||
|
||||
<script language="JavaScript">
|
||||
var targetName = opener.document.<?php echo $form?>.categoryname<?php print $form ?>;
|
||||
var targetID = opener.document.<?php echo $form?>.categoryid<?php print $form ?>;
|
||||
$(document).ready(function(){
|
||||
$('#getcategories').click(function(){
|
||||
// alert($('#keywordta option:selected').text());
|
||||
var value = '';
|
||||
$('#keywordta option:selected').each(function(){
|
||||
value += ' ' + $(this).text();
|
||||
});
|
||||
targetName.value = value;
|
||||
targetID.value = $('#keywordta').val();
|
||||
window.close();
|
||||
return true;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$this->contentContainerStart();
|
||||
$selcatsarr = explode(',', $selcats);
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td valign="top" class="inputDescription"><?php echo getMLText("categories")?>:</td>
|
||||
<td>
|
||||
<select id="keywordta" size="5" style="min-width: 100px;" multiple>
|
||||
<?php
|
||||
foreach($categories as $category) {
|
||||
echo "<option value=\"".$category->getId()."\"";
|
||||
if(in_array($category->getID(), $selcatsarr))
|
||||
echo " selected";
|
||||
echo ">".htmlspecialchars($category->getName())."</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type="button" id='getcategories' value="<?php echo getMLText("accept")?>">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,74 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of ChangePassword view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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();
|
||||
?>
|
||||
<form action="../op/op.ChangePassword.php" method="post" name="form1" onsubmit="return checkForm();">
|
||||
<?php
|
||||
if ($referuri) {
|
||||
echo "<input type='hidden' name='referuri' value='".$referuri."'/>";
|
||||
}
|
||||
if ($hash) {
|
||||
echo "<input type='hidden' name='hash' value='".$hash."'/>";
|
||||
}
|
||||
?>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td><?php printMLText("password");?></td>
|
||||
<td><input class="pwd" type="password" name="newpassword" id="password"> <div id="outerstrength" style="min-width: 100px; height: 14px; display: inline-block; border: 1px solid black; padding: 1px;"><div id="innerstrength" style="width: 0px; height: 14px; display: inline-block; border: 0px; padding: 0px; background-color: red;"> </div> <div id="strength" style="display: inline-block;"></div></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("password_repeat");?></td>
|
||||
<td><input type="password" name="newpasswordrepeat" id="passwordrepeat"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="Submit" value="<?php printMLText("submit_password") ?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php $this->contentContainerEnd(); ?>
|
||||
<script language="JavaScript">document.form1.newpassword.focus();</script>
|
||||
<p><a href="../out/out.Login.php"><?php echo getMLText("login"); ?></a></p>
|
||||
<?php
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,49 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of CreateIndex view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 '<p>'.getMLText('create_fulltext_index_warning').'</p>';
|
||||
echo '<a href="out.Indexer.php?create=1&confirm=1">'.getMLText('confirm_create_fulltext_index').'</a>';
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,200 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of DefaultKeywords view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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");
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
obj = -1;
|
||||
function showKeywords(selectObj) {
|
||||
if (obj != -1)
|
||||
obj.style.display = "none";
|
||||
|
||||
id = selectObj.options[selectObj.selectedIndex].value;
|
||||
if (id == -1)
|
||||
return;
|
||||
|
||||
obj = document.getElementById("keywords" + id);
|
||||
obj.style.display = "";
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
|
||||
$this->contentHeading(getMLText("global_default_keywords"));
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php echo getMLText("selection")?>:</td>
|
||||
<td>
|
||||
<select onchange="showKeywords(this)" id="selector">
|
||||
<option value="-1"><?php echo getMLText("choose_category")?>
|
||||
<option value="0"><?php echo getMLText("new_default_keyword_category")?>
|
||||
|
||||
<?php
|
||||
|
||||
$selected=0;
|
||||
$count=2;
|
||||
foreach ($categories as $category) {
|
||||
|
||||
$owner = $category->getOwner();
|
||||
if ((!$user->isAdmin()) && ($owner->getID() != $user->getID())) continue;
|
||||
|
||||
if ($selcategoryid && $category->getID()==$selcategoryid) $selected=$count;
|
||||
print "<option value=\"".$category->getID()."\">" . htmlspecialchars($category->getName());
|
||||
$count++;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
|
||||
<td id="keywords0" style="display : none;">
|
||||
<form action="../op/op.DefaultKeywords.php" method="post">
|
||||
<?php echo createHiddenFieldWithKey('addcategory'); ?>
|
||||
<input type="Hidden" name="action" value="addcategory">
|
||||
<?php printMLText("name");?>: <input type="text" name="name">
|
||||
<input type="submit" value="<?php printMLText("new_default_keyword_category"); ?>">
|
||||
</form>
|
||||
</td>
|
||||
<?php
|
||||
foreach ($categories as $category) {
|
||||
|
||||
$owner = $category->getOwner();
|
||||
if ((!$user->isAdmin()) && ($owner->getID() != $user->getID())) continue;
|
||||
|
||||
print "<td id=\"keywords".$category->getID()."\" style=\"display : none;\">";
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<form action="../op/op.DefaultKeywords.php" method="post">
|
||||
<?php echo createHiddenFieldWithKey('removecategory'); ?>
|
||||
<input type="Hidden" name="action" value="removecategory">
|
||||
<input type="Hidden" name="categoryid" value="<?php echo $category->getID()?>">
|
||||
<input value="<?php printMLText("rm_default_keyword_category");?>" type="submit" title="<?php echo getMLText("delete")?>">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<?php $this->contentSubHeading("");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo getMLText("name")?>:</td>
|
||||
<td>
|
||||
<form action="../op/op.DefaultKeywords.php" method="post">
|
||||
<?php echo createHiddenFieldWithKey('editcategory'); ?>
|
||||
<input type="hidden" name="action" value="editcategory">
|
||||
<input type="hidden" name="categoryid" value="<?php echo $category->getID()?>">
|
||||
<input name="name" type="text" value="<?php echo htmlspecialchars($category->getName()) ?>">
|
||||
<input type="submit" value="<?php printMLText("save");?>">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<?php $this->contentSubHeading("");?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><?php echo getMLText("default_keywords")?>:</td>
|
||||
<td>
|
||||
<?php
|
||||
$lists = $category->getKeywordLists();
|
||||
if (count($lists) == 0)
|
||||
print getMLText("no_default_keywords");
|
||||
else
|
||||
foreach ($lists as $list) {
|
||||
?>
|
||||
<form style="display: inline-block;" method="post" action="../op/op.DefaultKeywords.php" >
|
||||
<?php echo createHiddenFieldWithKey('editkeywords'); ?>
|
||||
<input type="Hidden" name="categoryid" value="<?php echo $category->getID()?>">
|
||||
<input type="Hidden" name="keywordsid" value="<?php echo $list["id"]?>">
|
||||
<input type="Hidden" name="action" value="editkeywords">
|
||||
<input name="keywords" type="text" value="<?php echo htmlspecialchars($list["keywords"]) ?>">
|
||||
<input name="action" value="editkeywords" type="Image" src="images/save.gif" title="<?php echo getMLText("save")?>" style="border: 0px;">
|
||||
<!-- <input name="action" value="removekeywords" type="Image" src="images/del.gif" title="<?php echo getMLText("delete")?>" border="0"> -->
|
||||
</form>
|
||||
<form style="display: inline-block;" method="post" action="../op/op.DefaultKeywords.php" >
|
||||
<?php echo createHiddenFieldWithKey('removekeywords'); ?>
|
||||
<input type="hidden" name="categoryid" value="<?php echo $category->getID()?>">
|
||||
<input type="hidden" name="keywordsid" value="<?php echo $list["id"]?>">
|
||||
<input type="hidden" name="action" value="removekeywords">
|
||||
<input name="action" value="removekeywords" type="Image" src="images/del.gif" title="<?php echo getMLText("delete")?>" style="border: 0px;">
|
||||
</form>
|
||||
<br>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<form action="../op/op.DefaultKeywords.php" method="post">
|
||||
<?php echo createHiddenFieldWithKey('newkeywords'); ?>
|
||||
<td><input type="Submit" value="<?php printMLText("new_default_keywords");?>"></td>
|
||||
<td>
|
||||
<input type="Hidden" name="action" value="newkeywords">
|
||||
<input type="Hidden" name="categoryid" value="<?php echo $category->getID()?>">
|
||||
<input type="text" name="keywords">
|
||||
</td>
|
||||
</form>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr></table>
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
sel = document.getElementById("selector");
|
||||
sel.selectedIndex=<?php print $selected ?>;
|
||||
showKeywords(sel);
|
||||
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,283 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of DocumentAccess view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 "<select name=\"mode\">\n";
|
||||
print "\t<option value=\"".M_NONE."\"" . (($defMode == M_NONE) ? " selected" : "") . ">" . getMLText("access_mode_none") . "</option>\n";
|
||||
print "\t<option value=\"".M_READ."\"" . (($defMode == M_READ) ? " selected" : "") . ">" . getMLText("access_mode_read") . "</option>\n";
|
||||
print "\t<option value=\"".M_READWRITE."\"" . (($defMode == M_READWRITE) ? " selected" : "") . ">" . getMLText("access_mode_readwrite") . "</option>\n";
|
||||
print "\t<option value=\"".M_ALL."\"" . (($defMode == M_ALL) ? " selected" : "") . ">" . getMLText("access_mode_all") . "</option>\n";
|
||||
print "</select>\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");
|
||||
|
||||
?>
|
||||
|
||||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if ((document.form1.userid.options[document.form1.userid.selectedIndex].value == -1) &&
|
||||
(document.form1.groupid.options[document.form1.groupid.selectedIndex].value == -1))
|
||||
msg += "<?php printMLText("js_select_user_or_group");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
|
||||
$this->contentHeading(getMLText("edit_document_access"));
|
||||
$this->contentContainerStart();
|
||||
|
||||
if ($user->isAdmin()) {
|
||||
|
||||
$this->contentSubHeading(getMLText("set_owner"));
|
||||
?>
|
||||
<form action="../op/op.DocumentAccess.php">
|
||||
<?php echo createHiddenFieldWithKey('documentaccess'); ?>
|
||||
<input type="Hidden" name="action" value="setowner">
|
||||
<input type="Hidden" name="documentid" value="<?php print $document->getId();?>">
|
||||
<?php printMLText("owner");?> : <select name="ownerid">
|
||||
<?php
|
||||
$owner = $document->getOwner();
|
||||
foreach ($allUsers as $currUser) {
|
||||
if ($currUser->isGuest())
|
||||
continue;
|
||||
print "<option value=\"".$currUser->getID()."\"";
|
||||
if ($currUser->getID() == $owner->getID())
|
||||
print " selected";
|
||||
print ">" . htmlspecialchars($currUser->getLogin() . " - " . $currUser->getFullname()) . "</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<input type="submit" value="<?php printMLText("save")?>">
|
||||
</form>
|
||||
<?php
|
||||
|
||||
}
|
||||
$this->contentSubHeading(getMLText("access_inheritance"));
|
||||
|
||||
if ($document->inheritsAccess()) {
|
||||
printMLText("inherits_access_msg");
|
||||
?>
|
||||
<p>
|
||||
<form action="../op/op.DocumentAccess.php" style="display: inline-block;">
|
||||
<?php echo createHiddenFieldWithKey('documentaccess'); ?>
|
||||
<input type="hidden" name="documentid" value="<?php print $document->getId();?>">
|
||||
<input type="hidden" name="action" value="notinherit">
|
||||
<input type="hidden" name="mode" value="copy">
|
||||
<input type="submit" value="<?php printMLText("inherits_access_copy_msg")?>">
|
||||
</form>
|
||||
<form action="../op/op.DocumentAccess.php" style="display: inline-block;">
|
||||
<?php echo createHiddenFieldWithKey('documentaccess'); ?>
|
||||
<input type="hidden" name="documentid" value="<?php print $document->getId();?>">
|
||||
<input type="hidden" name="action" value="notinherit">
|
||||
<input type="hidden" name="mode" value="empty">
|
||||
<input type="submit" value="<?php printMLText("inherits_access_empty_msg")?>">
|
||||
</form>
|
||||
</p>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<form action="../op/op.DocumentAccess.php">
|
||||
<?php echo createHiddenFieldWithKey('documentaccess'); ?>
|
||||
<input type="hidden" name="documentid" value="<?php print $document->getId();?>">
|
||||
<input type="hidden" name="action" value="inherit">
|
||||
<input type="submit" value="<?php printMLText("does_not_inherit_access_msg")?>">
|
||||
</form>
|
||||
<?php
|
||||
$accessList = $document->getAccessList();
|
||||
|
||||
$this->contentSubHeading(getMLText("default_access"));
|
||||
?>
|
||||
<form action="../op/op.DocumentAccess.php">
|
||||
<?php echo createHiddenFieldWithKey('documentaccess'); ?>
|
||||
<input type="Hidden" name="documentid" value="<?php print $document->getId();?>">
|
||||
<input type="Hidden" name="action" value="setdefault">
|
||||
<?php $this->printAccessModeSelection($document->getDefaultAccess()); ?>
|
||||
<input type="Submit" value="<?php printMLText("save");?>">
|
||||
</form>
|
||||
|
||||
<?php
|
||||
|
||||
$this->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 "<table class=\"defaultView\">";
|
||||
|
||||
foreach ($accessList["users"] as $userAccess) {
|
||||
$userObj = $userAccess->getUser();
|
||||
$memusers[] = $userObj->getID();
|
||||
print "<tr>\n";
|
||||
print "<td><img src=\"images/usericon.gif\" class=\"mimeicon\"></td>\n";
|
||||
print "<td>". htmlspecialchars($userObj->getFullName()) . "</td>\n";
|
||||
print "<form action=\"../op/op.DocumentAccess.php\">\n";
|
||||
print "<td>\n";
|
||||
$this->printAccessModeSelection($userAccess->getMode());
|
||||
print "</td>\n";
|
||||
print "<td><span class=\"actions\">\n";
|
||||
echo createHiddenFieldWithKey('documentaccess')."\n";
|
||||
print "<input type=\"Hidden\" name=\"documentid\" value=\"".$document->getId()."\">\n";
|
||||
print "<input type=\"hidden\" name=\"action\" value=\"editaccess\">\n";
|
||||
print "<input type=\"hidden\" name=\"userid\" value=\"".$userObj->getID()."\">\n";
|
||||
print "<input type=\"Image\" class=\"mimeicon\" src=\"images/save.gif\">".getMLText("save")." ";
|
||||
print "</span></td>\n";
|
||||
print "</form>\n";
|
||||
print "<form action=\"../op/op.DocumentAccess.php\">\n";
|
||||
print "<td><span class=\"actions\">\n";
|
||||
echo createHiddenFieldWithKey('documentaccess')."\n";
|
||||
print "<input type=\"Hidden\" name=\"documentid\" value=\"".$document->getId()."\">\n";
|
||||
print "<input type=\"hidden\" name=\"action\" value=\"delaccess\">\n";
|
||||
print "<input type=\"hidden\" name=\"userid\" value=\"".$userObj->getID()."\">\n";
|
||||
print "<input type=\"Image\" class=\"mimeicon\" src=\"images/del.gif\">".getMLText("delete")." ";
|
||||
print "<span></td>\n";
|
||||
print "</form>\n";
|
||||
print "</tr>\n";
|
||||
}
|
||||
|
||||
foreach ($accessList["groups"] as $groupAccess) {
|
||||
$groupObj = $groupAccess->getGroup();
|
||||
$memgroups[] = $groupObj->getID();
|
||||
$mode = $groupAccess->getMode();
|
||||
print "<tr>";
|
||||
print "<td><img src=\"images/groupicon.gif\" class=\"mimeicon\"></td>";
|
||||
print "<td>". htmlspecialchars($groupObj->getName()) . "</td>";
|
||||
print "<form action=\"../op/op.DocumentAccess.php\">";
|
||||
print "<td>";
|
||||
$this->printAccessModeSelection($groupAccess->getMode());
|
||||
print "</td>\n";
|
||||
print "<td><span class=\"actions\">\n";
|
||||
echo createHiddenFieldWithKey('documentaccess')."\n";
|
||||
print "<input type=\"Hidden\" name=\"documentid\" value=\"".$document->getId()."\">";
|
||||
print "<input type=\"Hidden\" name=\"action\" value=\"editaccess\">";
|
||||
print "<input type=\"Hidden\" name=\"groupid\" value=\"".$groupObj->getID()."\">";
|
||||
print "<input type=\"Image\" class=\"mimeicon\" src=\"images/save.gif\">".getMLText("save")." ";
|
||||
print "</span></td>\n";
|
||||
print "</form>";
|
||||
print "<td><span class=\"actions\">\n";
|
||||
print "<form action=\"../op/op.DocumentAccess.php\">\n";
|
||||
echo createHiddenFieldWithKey('documentaccess')."\n";
|
||||
print "<input type=\"Hidden\" name=\"documentid\" value=\"".$document->getId()."\">\n";
|
||||
print "<input type=\"Hidden\" name=\"action\" value=\"delaccess\">\n";
|
||||
print "<input type=\"Hidden\" name=\"groupid\" value=\"".$groupObj->getID()."\">\n";
|
||||
print "<input type=\"Image\" class=\"mimeicon\" src=\"images/del.gif\">".getMLText("delete")." ";
|
||||
print "</form>";
|
||||
print "</span></td>\n";
|
||||
print "</tr>\n";
|
||||
}
|
||||
|
||||
print "</table><br>";
|
||||
}
|
||||
?>
|
||||
<form action="../op/op.DocumentAccess.php" name="form1" onsubmit="return checkForm();">
|
||||
<?php echo createHiddenFieldWithKey('documentaccess'); ?>
|
||||
<input type="Hidden" name="documentid" value="<?php print $document->getId()?>">
|
||||
<input type="Hidden" name="action" value="addaccess">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("user");?>:</td>
|
||||
<td>
|
||||
<select name="userid">
|
||||
<option value="-1"><?php printMLText("select_one");?></option>
|
||||
<?php
|
||||
foreach ($allUsers as $userObj) {
|
||||
if ($userObj->isGuest() || in_array($userObj->getID(), $memusers)) {
|
||||
continue;
|
||||
}
|
||||
print "<option value=\"".$userObj->getID()."\">" . htmlspecialchars($userObj->getLogin() . " - " . $userObj->getFullName()) . "</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("group");?>:</td>
|
||||
<td>
|
||||
<select name="groupid">
|
||||
<option value="-1"><?php printMLText("select_one");?></option>
|
||||
<?php
|
||||
foreach ($allGroups as $groupObj) {
|
||||
if(in_array($groupObj->getID(), $memgroups))
|
||||
continue;
|
||||
print "<option value=\"".$groupObj->getID()."\">" . htmlspecialchars($groupObj->getName()) . "</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("access_mode");?>:</td>
|
||||
<td>
|
||||
<?php
|
||||
$this->printAccessModeSelection(M_READ);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="<?php printMLText("add");?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,136 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of DocumentChooser view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 "<ul style='list-style-type: none;'>\n";
|
||||
}
|
||||
print " <li>\n";
|
||||
print "<img class='treeicon' src=\"";
|
||||
if ($level == 0) $this->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 "<img src=\"".$this->getImgPath("folder_opened.gif")."\" border=0>".htmlspecialchars($folder->getName())."\n";
|
||||
}
|
||||
else
|
||||
print "<img src=\"".$this->getImgPath("folder_opened.gif")."\" width=18 height=18 border=0>".htmlspecialchars($folder->getName())."\n";
|
||||
print " </li>\n";
|
||||
|
||||
print "<ul style='list-style-type: none;'>";
|
||||
|
||||
for ($i = 0; $i < count($subFolders); $i++) {
|
||||
if ($subFolders[$i]->getID() == $nextFolderID)
|
||||
$this->printTree($path, $level+1);
|
||||
else {
|
||||
print "<li>\n";
|
||||
$subFolders_ = SeedDMS_Core_DMS::filterAccess($subFolders[$i]->getSubFolders(), $this->user, M_READ);
|
||||
$documents_ = SeedDMS_Core_DMS::filterAccess($subFolders[$i]->getDocuments(), $this->user, M_READ);
|
||||
|
||||
if (count($subFolders_) + count($documents_) > 0)
|
||||
print "<a href=\"out.DocumentChooser.php?form=".$this->form."&folderid=".$subFolders[$i]->getID()."\"><img class='treeicon' src=\"".$this->getImgPath("plus.png")."\" border=0></a>";
|
||||
else
|
||||
print "<img class='treeicon' src=\"".$this->getImgPath("blank.png")."\">";
|
||||
print "<img src=\"".$this->getImgPath("folder_closed.gif")."\" border=0>".htmlspecialchars($subFolders[$i]->getName())."\n";
|
||||
print "</li>";
|
||||
}
|
||||
}
|
||||
for ($i = 0; $i < count($documents); $i++) {
|
||||
print "<li>\n";
|
||||
print "<img class='treeicon' src=\"images/blank.png\">";
|
||||
print "<a class=\"foldertree_selectable\" href=\"javascript:documentSelected(".$documents[$i]->getID().",'".str_replace("'", "\\'", htmlspecialchars($documents[$i]->getName()))."');\"><img src=\"images/file.gif\" border=0>".htmlspecialchars($documents[$i]->getName())."</a>";
|
||||
print "</li>";
|
||||
}
|
||||
|
||||
print "</ul>\n";
|
||||
if ($level == 0) {
|
||||
print "</ul>\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"));
|
||||
?>
|
||||
|
||||
<script language="JavaScript">
|
||||
var targetName;
|
||||
var targetID;
|
||||
|
||||
function documentSelected(id, name) {
|
||||
targetName.value = name;
|
||||
targetID.value = id;
|
||||
window.close();
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
echo "<input type=\"text\" class=\"autocomplete\" />";
|
||||
$this->contentContainerStart();
|
||||
echo "<div id=\"resultautocomplete\"></div>";
|
||||
$this->contentContainerEnd();
|
||||
$this->contentContainerStart();
|
||||
$this->printTree($folder->getPath());
|
||||
$this->contentContainerEnd();
|
||||
?>
|
||||
|
||||
<script language="JavaScript">
|
||||
targetName = opener.document.<?php echo $this->form?>.docname<?php print $this->form ?>;
|
||||
targetID = opener.document.<?php echo $this->form?>.docid<?php print $this->form ?>;
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,154 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of DocumentNotify view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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");
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if ((document.form1.userid.options[document.form1.userid.selectedIndex].value == -1) &&
|
||||
(document.form1.groupid.options[document.form1.groupid.selectedIndex].value == -1))
|
||||
msg += "<?php printMLText("js_select_user_or_group");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$this->contentHeading(getMLText("edit_existing_notify"));
|
||||
$this->contentContainerStart();
|
||||
|
||||
$userNotifyIDs = array();
|
||||
$groupNotifyIDs = array();
|
||||
|
||||
print "<table class=\"defaultView\">\n";
|
||||
if ((count($notifyList["users"]) == 0) && (count($notifyList["groups"]) == 0)) {
|
||||
print "<tr><td>".getMLText("empty_notify_list")."</td></tr>";
|
||||
}
|
||||
else {
|
||||
foreach ($notifyList["users"] as $userNotify) {
|
||||
print "<tr>";
|
||||
print "<td><img src=\"images/usericon.gif\" class=\"mimeicon\"></td>";
|
||||
print "<td>" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . "</td>";
|
||||
if ($user->isAdmin() || $user->getID() == $userNotify->getID()) {
|
||||
print "<td><a href=\"../op/op.DocumentNotify.php?documentid=". $document->getID() . "&action=delnotify&userid=".$userNotify->getID()."\"><img src=\"images/del.gif\" class=\"mimeicon\"></a>".getMLText("delete")."</td>";
|
||||
}else print "<td></td>";
|
||||
print "</tr>";
|
||||
$userNotifyIDs[] = $userNotify->getID();
|
||||
}
|
||||
foreach ($notifyList["groups"] as $groupNotify) {
|
||||
print "<tr>";
|
||||
print "<td><img src=\"images/groupicon.gif\" width=16 height=16 border=0></td>";
|
||||
print "<td>" . htmlspecialchars($groupNotify->getName()) . "</td>";
|
||||
if ($user->isAdmin() || $groupNotify->isMember($user,true)) {
|
||||
print "<td><a href=\"../op/op.DocumentNotify.php?documentid=". $document->getID() . "&action=delnotify&groupid=".$groupNotify->getID()."\"><img src=\"images/del.gif\" class=\"mimeicon\"></a>".getMLText("delete")."</td>";
|
||||
}else print "<td></td>";
|
||||
print "</tr>";
|
||||
$groupNotifyIDs[] = $groupNotify->getID();
|
||||
}
|
||||
}
|
||||
print "</table>\n";
|
||||
|
||||
?>
|
||||
<br>
|
||||
|
||||
<form action="../op/op.DocumentNotify.php" name="form1" onsubmit="return checkForm();">
|
||||
<input type="hidden" name="documentid" value="<?php print $document->getID()?>">
|
||||
<input type="hidden" name="action" value="addnotify">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("user");?>:</td>
|
||||
<td>
|
||||
<select name="userid">
|
||||
<option value="-1"><?php printMLText("select_one");?>
|
||||
<?php
|
||||
if ($user->isAdmin()) {
|
||||
$allUsers = $dms->getAllUsers($sortusersinlist);
|
||||
foreach ($allUsers as $userObj) {
|
||||
if (!$userObj->isGuest() && ($document->getAccessMode($userObj) >= M_READ) && !in_array($userObj->getID(), $userNotifyIDs))
|
||||
print "<option value=\"".$userObj->getID()."\">" . htmlspecialchars($userObj->getLogin() . " - " . $userObj->getFullName()) . "\n";
|
||||
}
|
||||
}
|
||||
elseif (!$user->isGuest() && !in_array($user->getID(), $userNotifyIDs)) {
|
||||
print "<option value=\"".$user->getID()."\">" . htmlspecialchars($user->getLogin() . " - " . $user->getFullName()) . "\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("group");?>:</td>
|
||||
<td>
|
||||
<select name="groupid">
|
||||
<option value="-1"><?php printMLText("select_one");?>
|
||||
<?php
|
||||
$allGroups = $dms->getAllGroups();
|
||||
foreach ($allGroups as $groupObj) {
|
||||
if (($user->isAdmin() || $groupObj->isMember($user,true)) && $document->getGroupAccessMode($groupObj) >= M_READ && !in_array($groupObj->getID(), $groupNotifyIDs)) {
|
||||
print "<option value=\"".$groupObj->getID()."\">" . htmlspecialchars($groupObj->getName()) . "\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="Submit" value="<?php printMLText("add") ?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,260 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of DocumentVersionDetail view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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();
|
||||
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("owner");?>:</td>
|
||||
<td>
|
||||
<?php
|
||||
$owner = $document->getOwner();
|
||||
print "<a class=\"infos\" href=\"mailto:".$owner->getEmail()."\">".htmlspecialchars($owner->getFullName())."</a>";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("comment");?>:</td>
|
||||
<td><?php print htmlspecialchars($document->getComment());?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("creation_date");?>:</td>
|
||||
<td><?php print getLongReadableDate($document->getDate()); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("keywords");?>:</td>
|
||||
<td><?php print htmlspecialchars($document->getKeywords());?></td>
|
||||
</tr>
|
||||
<?php
|
||||
if ($document->isLocked()) {
|
||||
$lockingUser = $document->getLockingUser();
|
||||
?>
|
||||
<tr>
|
||||
<td><?php printMLText("lock_status");?>:</td>
|
||||
<td><?php printMLText("lock_message", array("email" => $lockingUser->getEmail(), "username" => htmlspecialchars($lockingUser->getFullName())));?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
$this->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 "<table class=\"folderView\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th width='10%'></th>\n";
|
||||
print "<th width='10%'>".getMLText("version")."</th>\n";
|
||||
print "<th width='20%'>".getMLText("file")."</th>\n";
|
||||
print "<th width='25%'>".getMLText("comment")."</th>\n";
|
||||
print "<th width='15%'>".getMLText("status")."</th>\n";
|
||||
print "<th width='20%'></th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
print "<tr>\n";
|
||||
print "<td><ul class=\"actions\">";
|
||||
|
||||
if ($file_exists){
|
||||
print "<li><a href=\"../op/op.Download.php?documentid=".$document->getID()."&version=".$version->getVersion()."\"><img class=\"mimeicon\" src=\"images/icons/".$this->getMimeIcon($version->getFileType())."\" title=\"".htmlspecialchars($version->getMimeType())."\"> ".getMLText("download")."</a>";
|
||||
if ($viewonlinefiletypes && in_array(strtolower($version->getFileType()), $viewonlinefiletypes))
|
||||
print "<li><a target=\"_blank\" href=\"../op/op.ViewOnline.php?documentid=".$document->getID()."&version=".$version->getVersion()."\"><img src=\"images/view.gif\" class=\"mimeicon\">" . getMLText("view_online") . "</a>";
|
||||
}else print "<li><img class=\"mimeicon\" src=\"images/icons/".$this->getMimeIcon($version->getFileType())."\" title=\"".htmlspecialchars($version->getMimeType())."\"> ";
|
||||
|
||||
print "</ul></td>\n";
|
||||
print "<td class=\"center\">".$version->getVersion()."</td>\n";
|
||||
|
||||
print "<td><ul class=\"documentDetail\">\n";
|
||||
print "<li>".$version->getOriginalFileName()."</li>\n";
|
||||
|
||||
if ($file_exists) print "<li>". formatted_size(filesize($dms->contentDir . $version->getPath())) ." ".htmlspecialchars($version->getMimeType())."</li>";
|
||||
else print "<li><span class=\"warning\">".getMLText("document_deleted")."</span></li>";
|
||||
|
||||
$updatingUser = $version->getUser();
|
||||
print "<li>".getMLText("uploaded_by")." <a href=\"mailto:".$updatingUser->getEmail()."\">".htmlspecialchars($updatingUser->getFullName())."</a></li>";
|
||||
print "<li>".getLongReadableDate($version->getDate())."</li>";
|
||||
print "</ul></td>\n";
|
||||
|
||||
print "<td>".htmlspecialchars($version->getComment())."</td>";
|
||||
print "<td>".getOverallStatusText($status["status"])."</td>";
|
||||
print "<td>";
|
||||
|
||||
//if (($document->getAccessMode($user) >= M_READWRITE)) {
|
||||
print "<ul class=\"actions\">";
|
||||
if (($enableversionmodification && ($document->getAccessMode($user) >= M_READWRITE)) || $user->isAdmin()) {
|
||||
print "<li><a href=\"out.RemoveVersion.php?documentid=".$document->getID()."&version=".$version->getVersion()."\">".getMLText("rm_version")."</a></li>";
|
||||
}
|
||||
if (($enableversionmodification && ($document->getAccessMode($user) == M_ALL)) || $user->isAdmin()) {
|
||||
if ( $status["status"]==S_RELEASED || $status["status"]==S_OBSOLETE ){
|
||||
print "<li><a href='../out/out.OverrideContentStatus.php?documentid=".$document->getID()."&version=".$version->getVersion()."'>".getMLText("change_status")."</a></li>";
|
||||
}
|
||||
}
|
||||
if (($enableversionmodification && ($document->getAccessMode($user) >= M_READWRITE)) || $user->isAdmin()) {
|
||||
if($status["status"] != S_OBSOLETE)
|
||||
print "<li><a href=\"out.EditComment.php?documentid=".$document->getID()."&version=".$version->getVersion()."\">".getMLText("edit_comment")."</a></li>";
|
||||
if ( $status["status"] == S_DRAFT_REV){
|
||||
print "<li><a href=\"out.EditAttributes.php?documentid=".$document->getID()."&version=".$latestContent->getVersion()."\">".getMLText("edit_attributes")."</a></li>";
|
||||
}
|
||||
print "</ul>";
|
||||
}
|
||||
else {
|
||||
print " ";
|
||||
}
|
||||
|
||||
echo "</td>";
|
||||
print "</tr></tbody>\n</table>\n";
|
||||
|
||||
|
||||
print "<table class=\"folderView\">\n";
|
||||
|
||||
if (is_array($reviewStatus) && count($reviewStatus)>0) {
|
||||
|
||||
print "<tr><td colspan=4>\n";
|
||||
$this->contentSubHeading(getMLText("reviewers"));
|
||||
print "</td></tr>\n";
|
||||
|
||||
print "<tr>\n";
|
||||
print "<td width='20%'><b>".getMLText("name")."</b></td>\n";
|
||||
print "<td width='20%'><b>".getMLText("last_update")."</b></td>\n";
|
||||
print "<td width='25%'><b>".getMLText("comment")."</b></td>";
|
||||
print "<td width='35%'><b>".getMLText("status")."</b></td>\n";
|
||||
print "</tr>\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 "<tr>\n";
|
||||
print "<td>".$reqName."</td>\n";
|
||||
print "<td><ul class=\"documentDetail\"><li>".$r["date"]."</li>";
|
||||
$updateUser = $dms->getUser($r["userID"]);
|
||||
print "<li>".(is_object($updateUser) ? $updateUser->getFullName() : "unknown user id '".$r["userID"]."'")."</li></ul></td>";
|
||||
print "<td>".$r["comment"]."</td>\n";
|
||||
print "<td>".getReviewStatusText($r["status"])."</td>\n";
|
||||
print "</tr>\n";
|
||||
}
|
||||
}
|
||||
|
||||
if (is_array($approvalStatus) && count($approvalStatus)>0) {
|
||||
|
||||
print "<tr><td colspan=4>\n";
|
||||
$this->contentSubHeading(getMLText("approvers"));
|
||||
print "</td></tr>\n";
|
||||
|
||||
print "<tr>\n";
|
||||
print "<td width='20%'><b>".getMLText("name")."</b></td>\n";
|
||||
print "<td width='20%'><b>".getMLText("last_update")."</b></td>\n";
|
||||
print "<td width='25%'><b>".getMLText("comment")."</b></td>";
|
||||
print "<td width='35%'><b>".getMLText("status")."</b></td>\n";
|
||||
print "</tr>\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 "<tr>\n";
|
||||
print "<td>".$reqName."</td>\n";
|
||||
print "<td><ul class=\"documentDetail\"><li>".$a["date"]."</li>";
|
||||
$updateUser = $dms->getUser($a["userID"]);
|
||||
print "<li>".(is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()) : "unknown user id '".$a["userID"]."'")."</li></ul></td>";
|
||||
print "<td>".$a["comment"]."</td>\n";
|
||||
print "<td>".getApprovalStatusText($a["status"])."</td>\n";
|
||||
print "</tr>\n";
|
||||
}
|
||||
}
|
||||
|
||||
print "</table>\n";
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,75 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of CategoryChooser view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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"));
|
||||
?>
|
||||
|
||||
<script language="JavaScript">
|
||||
var targetName = opener.document.<?php echo $form?>.dropfolderfile<?php print $form ?>;
|
||||
</script>
|
||||
<?php
|
||||
$this->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 "<table>\n";
|
||||
while (false !== ($entry = $d->read())) {
|
||||
if($entry != '..' && $entry != '.') {
|
||||
if(!is_dir($entry)) {
|
||||
echo "<tr><td><span style=\"cursor: pointer;\" onClick=\"targetName.value = '".$entry."'; window.close();\">".$entry."</span></td><td align=\"right\">".SeedDMS_Core_File::format_filesize(filesize($dir.'/'.$entry))."</td></tr>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
echo "</table>\n";
|
||||
}
|
||||
}
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,76 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of EditAttributes view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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();
|
||||
?>
|
||||
<form action="../op/op.EditAttributes.php" name="form1" method="POST">
|
||||
<?php echo createHiddenFieldWithKey('editattributes'); ?>
|
||||
<input type="Hidden" name="documentid" value="<?php print $document->getID();?>">
|
||||
<input type="Hidden" name="version" value="<?php print $version->getVersion();?>">
|
||||
<table cellpadding="3">
|
||||
<?php
|
||||
if($attrdefs) {
|
||||
foreach($attrdefs as $attrdef) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo htmlspecialchars($attrdef->getName()); ?></td>
|
||||
<td><?php $this->printAttributeEditField($attrdef, $version->getAttributeValue($attrdef)) ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="2"><br><input type="submit" value="<?php printMLText("save") ?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,90 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of EditComment view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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");
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
<?php
|
||||
if ($strictformcheck) {
|
||||
?>
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$this->contentHeading(getMLText("edit_comment"));
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<form action="../op/op.EditComment.php" name="form1" onsubmit="return checkForm();" method="POST">
|
||||
<?php echo createHiddenFieldWithKey('editcomment'); ?>
|
||||
<input type="Hidden" name="documentid" value="<?php print $document->getID();?>">
|
||||
<input type="Hidden" name="version" value="<?php print $version->getVersion();?>">
|
||||
<table cellpadding="3">
|
||||
<tr>
|
||||
<td valign="top" class="inputDescription"><?php printMLText("comment");?>:</td>
|
||||
<td><textarea name="comment" rows="4" cols="80"><?php print htmlspecialchars($version->getComment());?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><br><input type="Submit" value="<?php printMLText("save") ?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,132 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of EditDocument view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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");
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
<?php
|
||||
if ($strictformcheck) {
|
||||
?>
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (document.form1.keywords.value == "") msg += "<?php printMLText("js_no_keywords");?>\n";
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$this->contentHeading(getMLText("edit_document_props"));
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<form action="../op/op.EditDocument.php" name="form1" onsubmit="return checkForm();" method="POST">
|
||||
<input type="hidden" name="documentid" value="<?php echo $document->getID() ?>">
|
||||
<table cellpadding="3">
|
||||
<tr>
|
||||
<td class="inputDescription"><?php printMLText("name");?>:</td>
|
||||
<td><input name="name" value="<?php print htmlspecialchars($document->getName());?>" size="60"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="inputDescription"><?php printMLText("comment");?>:</td>
|
||||
<td><textarea name="comment" rows="4" cols="80"><?php print htmlspecialchars($document->getComment());?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="inputDescription"><?php printMLText("keywords");?>:</td>
|
||||
<td class="standardText">
|
||||
<textarea name="keywords" rows="2" cols="80"><?php print htmlspecialchars($document->getKeywords());?></textarea><br>
|
||||
<a href="javascript:chooseKeywords('form1.keywords');"><?php printMLText("use_default_keywords");?></a>
|
||||
<script language="JavaScript">
|
||||
var openDlg;
|
||||
|
||||
function chooseKeywords(target) {
|
||||
openDlg = open("out.KeywordChooser.php?target="+target, "openDlg", "width=500,height=400,scrollbars=yes,resizable=yes");
|
||||
}
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("categories")?>:</td>
|
||||
<td><?php $this->printCategoryChooser("form1", $document->getCategories());?></td>
|
||||
</tr>
|
||||
<?php
|
||||
if ($folder->getAccessMode($user) > M_READ) {
|
||||
print "<tr>";
|
||||
print "<td class=\"inputDescription\">" . getMLText("sequence") . ":</td>";
|
||||
print "<td>";
|
||||
$this->printSequenceChooser($folder->getDocuments(), $document->getID());
|
||||
print "</td></tr>";
|
||||
}
|
||||
if($attrdefs) {
|
||||
foreach($attrdefs as $attrdef) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo htmlspecialchars($attrdef->getName()); ?></td>
|
||||
<td><?php $this->printAttributeEditField($attrdef, $document->getAttributeValue($attrdef)) ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="2"><br><input type="Submit" value="<?php printMLText("save") ?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,101 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of EditEvent view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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();
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
<?php
|
||||
if ($strictformcheck) {
|
||||
?>
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<form action="../op/op.EditEvent.php" name="form1" onsubmit="return checkForm();" method="POST">
|
||||
<?php echo createHiddenFieldWithKey('editevent'); ?>
|
||||
|
||||
<input type="Hidden" name="eventid" value="<?php echo (int) $event["id"]; ?>">
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("from");?>:</td>
|
||||
<td><?php $this->printDateChooser($event["start"], "from");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("to");?>:</td>
|
||||
<td><?php $this->printDateChooser($event["stop"], "to");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="inputDescription"><?php printMLText("name");?>:</td>
|
||||
<td><input name="name" value="<?php echo htmlspecialchars($event["name"]);?>" size="60"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="inputDescription"><?php printMLText("comment");?>:</td>
|
||||
<td><textarea name="comment" rows="4" cols="80"><?php echo htmlspecialchars($event["comment"])?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><br><input type="Submit" value="<?php printMLText("edit_event");?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,116 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of EditFolder view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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);
|
||||
?>
|
||||
|
||||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
<?php
|
||||
if ($strictformcheck) {
|
||||
?>
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$this->contentHeading(getMLText("edit_folder_props"));
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<form action="../op/op.EditFolder.php" name="form1" onsubmit="return checkForm();" method="POST">
|
||||
<input type="Hidden" name="folderid" value="<?php print $folder->getID();?>">
|
||||
<input type="Hidden" name="showtree" value="<?php echo showtree();?>">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("name");?>:</td>
|
||||
<td><input type="text" name="name" value="<?php print htmlspecialchars($folder->getName());?>" size="60"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("comment");?>:</td>
|
||||
<td><textarea name="comment" rows="4" cols="80"><?php print htmlspecialchars($folder->getComment());?></textarea></td>
|
||||
</tr>
|
||||
<?php
|
||||
$parent = ($folder->getID() == $rootfolderid) ? false : $folder->getParent();
|
||||
if ($parent && $parent->getAccessMode($user) > M_READ) {
|
||||
print "<tr>";
|
||||
print "<td>" . getMLText("sequence") . ":</td>";
|
||||
print "<td>";
|
||||
$this->printSequenceChooser($parent->getSubFolders(), $folder->getID());
|
||||
print "</td></tr>\n";
|
||||
}
|
||||
|
||||
if($attrdefs) {
|
||||
foreach($attrdefs as $attrdef) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo htmlspecialchars($attrdef->getName()); ?></td>
|
||||
<td><?php $this->printAttributeEditField($attrdef, $folder->getAttributeValue($attrdef)) ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="<?php printMLText("save"); ?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,153 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of EditUserData view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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");
|
||||
|
||||
?>
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.pwd.value != document.form1.pwdconf.value) msg += "<?php printMLText("js_pwd_not_conf");?>\n";
|
||||
if (document.form1.fullname.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
if (document.form1.email.value == "") msg += "<?php printMLText("js_no_email");?>\n";
|
||||
// if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$this->contentHeading(getMLText("edit_user_details"));
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<form action="../op/op.EditUserData.php" enctype="multipart/form-data" method="post" name="form1" onsubmit="return checkForm();">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("current_password");?>:</td>
|
||||
<td><input id="currentpwd" type="password" name="currentpwd" size="30"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("new_password");?>:</td>
|
||||
<td><input class="pwd" rel="outerstrength" type="password" name="pwd" size="30"> <div id="outerstrength" style="min-width: 100px; height: 14px; display: inline-block; border: 1px solid black; padding: 1px;"><div id="innerstrength" style="width: 0px; height: 14px; display: inline-block; border: 0px; padding: 0px; background-color: red;"> </div> <div id="strength" style="display: inline-block;"></div></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("confirm_pwd");?>:</td>
|
||||
<td><input id="pwdconf" type="Password" name="pwdconf" size="30"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("name");?>:</td>
|
||||
<td><input type="text" name="fullname" value="<?php print htmlspecialchars($user->getFullName());?>" size="30"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("email");?>:</td>
|
||||
<td><input type="text" name="email" value="<?php print htmlspecialchars($user->getEmail());?>" size="30"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("comment");?>:</td>
|
||||
<td><textarea name="comment" rows="4" cols="80"><?php print htmlspecialchars($user->getComment());?></textarea></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
if ($enableuserimage){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php printMLText("user_image");?>:</td>
|
||||
<td>
|
||||
<?php
|
||||
if ($user->hasImage())
|
||||
print "<img src=\"".$httproot . "out/out.UserImage.php?userid=".$user->getId()."\">";
|
||||
else printMLText("no_user_image");
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("new_user_image");?>:</td>
|
||||
<td><input type="file" name="userfile" accept="image/jpeg" size="30"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("language");?>:</td>
|
||||
<td>
|
||||
<select name="language">
|
||||
<?php
|
||||
$languages = getLanguages();
|
||||
foreach ($languages as $currLang) {
|
||||
print "<option value=\"".$currLang."\" ".(($user->getLanguage()==$currLang) ? "selected" : "").">".getMLText($currLang)."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("theme");?>:</td>
|
||||
<td>
|
||||
<select name="theme">
|
||||
<?php
|
||||
$themes = UI::getStyles();
|
||||
foreach ($themes as $currTheme) {
|
||||
print "<option value=\"".$currTheme."\" ".(($user->getTheme()==$currTheme) ? "selected" : "").">".$currTheme."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="<?php printMLText("submit_userinfo") ?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,38 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of ErrorDlg view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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() { /* {{{ */
|
||||
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,275 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of FolderAccess view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 "<select name=\"mode\">\n";
|
||||
print "\t<option value=\"".M_NONE."\"" . (($defMode == M_NONE) ? " selected" : "") . ">" . getMLText("access_mode_none") . "\n";
|
||||
print "\t<option value=\"".M_READ."\"" . (($defMode == M_READ) ? " selected" : "") . ">" . getMLText("access_mode_read") . "\n";
|
||||
print "\t<option value=\"".M_READWRITE."\"" . (($defMode == M_READWRITE) ? " selected" : "") . ">" . getMLText("access_mode_readwrite") . "\n";
|
||||
print "\t<option value=\"".M_ALL."\"" . (($defMode == M_ALL) ? " selected" : "") . ">" . getMLText("access_mode_all") . "\n";
|
||||
print "</select>\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);
|
||||
?>
|
||||
|
||||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if ((document.form1.userid.options[document.form1.userid.selectedIndex].value == -1) &&
|
||||
(document.form1.groupid.options[document.form1.groupid.selectedIndex].value == -1))
|
||||
msg += "<?php printMLText("js_select_user_or_group");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$this->contentHeading(getMLText("edit_folder_access"));
|
||||
$this->contentContainerStart();
|
||||
|
||||
if ($user->isAdmin()) {
|
||||
|
||||
$this->contentSubHeading(getMLText("set_owner"));
|
||||
?>
|
||||
<form action="../op/op.FolderAccess.php">
|
||||
<?php echo createHiddenFieldWithKey('folderaccess'); ?>
|
||||
<input type="Hidden" name="action" value="setowner">
|
||||
<input type="Hidden" name="folderid" value="<?php print $folder->getID();?>">
|
||||
<?php printMLText("owner");?> : <select name="ownerid">
|
||||
<?php
|
||||
$owner = $folder->getOwner();
|
||||
foreach ($allUsers as $currUser) {
|
||||
if ($currUser->isGuest())
|
||||
continue;
|
||||
print "<option value=\"".$currUser->getID()."\"";
|
||||
if ($currUser->getID() == $owner->getID())
|
||||
print " selected";
|
||||
print ">" . htmlspecialchars($currUser->getLogin() . " - " . $currUser->getFullname()) . "</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<input type="submit" value="<?php printMLText("save")?>">
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($folder->getID() != $rootfolderid && $folder->getParent()){
|
||||
|
||||
$this->contentSubHeading(getMLText("access_inheritance"));
|
||||
|
||||
if ($folder->inheritsAccess()) {
|
||||
printMLText("inherits_access_msg");
|
||||
?>
|
||||
<p>
|
||||
<form action="../op/op.FolderAccess.php" style="display: inline-block;">
|
||||
<?php echo createHiddenFieldWithKey('folderaccess'); ?>
|
||||
<input type="hidden" name="folderid" value="<?php print $folder->getID();?>">
|
||||
<input type="hidden" name="action" value="notinherit">
|
||||
<input type="hidden" name="mode" value="copy">
|
||||
<input type="submit" value="<?php printMLText("inherits_access_copy_msg")?>">
|
||||
</form>
|
||||
<form action="../op/op.FolderAccess.php" style="display: inline-block;">
|
||||
<?php echo createHiddenFieldWithKey('folderaccess'); ?>
|
||||
<input type="hidden" name="folderid" value="<?php print $folder->getID();?>">
|
||||
<input type="hidden" name="action" value="notinherit">
|
||||
<input type="hidden" name="mode" value="empty">
|
||||
<input type="submit" value="<?php printMLText("inherits_access_empty_msg")?>">
|
||||
</form>
|
||||
</p>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<form action="../op/op.FolderAccess.php">
|
||||
<?php echo createHiddenFieldWithKey('folderaccess'); ?>
|
||||
<input type="hidden" name="folderid" value="<?php print $folder->getID();?>">
|
||||
<input type="hidden" name="action" value="inherit">
|
||||
<input type="submit" value="<?php printMLText("does_not_inherit_access_msg")?>">
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
|
||||
$accessList = $folder->getAccessList();
|
||||
|
||||
$this->contentSubHeading(getMLText("default_access"));
|
||||
?>
|
||||
<form action="../op/op.FolderAccess.php">
|
||||
<?php echo createHiddenFieldWithKey('folderaccess'); ?>
|
||||
<input type="Hidden" name="folderid" value="<?php print $folder->getID();?>">
|
||||
<input type="Hidden" name="action" value="setdefault">
|
||||
<?php $this->printAccessModeSelection($folder->getDefaultAccess()); ?>
|
||||
<input type="submit" value="<?php printMLText("save");?>">
|
||||
</form>
|
||||
|
||||
<?php
|
||||
|
||||
$this->contentSubHeading(getMLText("edit_existing_access"));
|
||||
|
||||
if ((count($accessList["users"]) != 0) || (count($accessList["groups"]) != 0)) {
|
||||
|
||||
print "<table class=\"defaultView\">";
|
||||
|
||||
foreach ($accessList["users"] as $userAccess) {
|
||||
$userObj = $userAccess->getUser();
|
||||
print "<tr>\n";
|
||||
print "<td><img src=\"images/usericon.gif\" class=\"mimeicon\"></td>\n";
|
||||
print "<td>". htmlspecialchars($userObj->getFullName()) . "</td>\n";
|
||||
print "<form action=\"../op/op.FolderAccess.php\">\n";
|
||||
echo createHiddenFieldWithKey('folderaccess')."\n";
|
||||
print "<input type=\"Hidden\" name=\"folderid\" value=\"".$folder->getID()."\">\n";
|
||||
print "<input type=\"Hidden\" name=\"action\" value=\"editaccess\">\n";
|
||||
print "<input type=\"Hidden\" name=\"userid\" value=\"".$userObj->getID()."\">\n";
|
||||
print "<td>\n";
|
||||
$this->printAccessModeSelection($userAccess->getMode());
|
||||
print "</td>\n";
|
||||
print "<td><span class=\"actions\">\n";
|
||||
print "<input type=\"Image\" class=\"mimeicon\" src=\"images/save.gif\">".getMLText("save")." ";
|
||||
print "</span></td>\n";
|
||||
print "</form>\n";
|
||||
print "<td><span class=\"actions\">\n";
|
||||
print "<form action=\"../op/op.FolderAccess.php\">\n";
|
||||
echo createHiddenFieldWithKey('folderaccess')."\n";
|
||||
print "<input type=\"Hidden\" name=\"folderid\" value=\"".$folder->getID()."\">\n";
|
||||
print "<input type=\"Hidden\" name=\"action\" value=\"delaccess\">\n";
|
||||
print "<input type=\"Hidden\" name=\"userid\" value=\"".$userObj->getID()."\">\n";
|
||||
print "<input type=\"Image\" class=\"mimeicon\" src=\"images/del.gif\">".getMLText("delete")." ";
|
||||
print "</form>\n";
|
||||
print "<span></td>\n";
|
||||
print "</tr>\n";
|
||||
}
|
||||
|
||||
foreach ($accessList["groups"] as $groupAccess) {
|
||||
$groupObj = $groupAccess->getGroup();
|
||||
$mode = $groupAccess->getMode();
|
||||
print "<tr>";
|
||||
print "<td><img src=\"images/groupicon.gif\" class=\"mimeicon\"></td>";
|
||||
print "<td>". htmlspecialchars($groupObj->getName()) . "</td>";
|
||||
print "<form action=\"../op/op.FolderAccess.php\">";
|
||||
echo createHiddenFieldWithKey('folderaccess')."\n";
|
||||
print "<input type=\"Hidden\" name=\"folderid\" value=\"".$folder->getID()."\">";
|
||||
print "<input type=\"Hidden\" name=\"action\" value=\"editaccess\">";
|
||||
print "<input type=\"Hidden\" name=\"groupid\" value=\"".$groupObj->getID()."\">";
|
||||
print "<td>";
|
||||
$this->printAccessModeSelection($groupAccess->getMode());
|
||||
print "</td>\n";
|
||||
print "<td><span class=\"actions\">\n";
|
||||
print "<input type=\"Image\" class=\"mimeicon\" src=\"images/save.gif\">".getMLText("save")." ";
|
||||
print "</span></td>\n";
|
||||
print "</form>";
|
||||
print "<form action=\"../op/op.FolderAccess.php\">\n";
|
||||
print "<td><span class=\"actions\">\n";
|
||||
echo createHiddenFieldWithKey('folderaccess')."\n";
|
||||
print "<input type=\"Hidden\" name=\"folderid\" value=\"".$folder->getID()."\">\n";
|
||||
print "<input type=\"Hidden\" name=\"action\" value=\"delaccess\">\n";
|
||||
print "<input type=\"Hidden\" name=\"groupid\" value=\"".$groupObj->getID()."\">\n";
|
||||
print "<input type=\"Image\" class=\"mimeicon\" src=\"images/del.gif\">".getMLText("delete")." ";
|
||||
print "</span></td>\n";
|
||||
print "</form>";
|
||||
print "</tr>\n";
|
||||
}
|
||||
|
||||
print "</table><br>";
|
||||
}
|
||||
?>
|
||||
<form action="../op/op.FolderAccess.php" name="form1" onsubmit="return checkForm();">
|
||||
<?php echo createHiddenFieldWithKey('folderaccess'); ?>
|
||||
<input type="Hidden" name="folderid" value="<?php print $folder->getID()?>">
|
||||
<input type="Hidden" name="action" value="addaccess">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("user");?>:</td>
|
||||
<td>
|
||||
<select name="userid">
|
||||
<option value="-1"><?php printMLText("select_one");?>
|
||||
<?php
|
||||
foreach ($allUsers as $userObj) {
|
||||
if ($userObj->isGuest()) {
|
||||
continue;
|
||||
}
|
||||
print "<option value=\"".$userObj->getID()."\">" . htmlspecialchars($userObj->getLogin() . " - " . $userObj->getFullName()) . "</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="inputDescription"><?php printMLText("group");?>:</td>
|
||||
<td>
|
||||
<select name="groupid">
|
||||
<option value="-1"><?php printMLText("select_one");?>
|
||||
<?php
|
||||
foreach ($allGroups as $groupObj) {
|
||||
print "<option value=\"".$groupObj->getID()."\">" . htmlspecialchars($groupObj->getName()) . "\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="inputDescription"><?php printMLText("access_mode");?>:</td>
|
||||
<td>
|
||||
<?php
|
||||
$this->printAccessModeSelection(M_READ);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="<?php printMLText("add");?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,82 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of FolderChooser view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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"));
|
||||
?>
|
||||
|
||||
<script language="JavaScript">
|
||||
function toggleTree(id){
|
||||
obj = document.getElementById("tree" + id);
|
||||
if ( obj.style.display == "none" ) obj.style.display = "";
|
||||
else obj.style.display = "none";
|
||||
}
|
||||
|
||||
var targetName;
|
||||
var targetID;
|
||||
|
||||
function folderSelected(id, name) {
|
||||
targetName.value = name;
|
||||
targetID.value = id;
|
||||
window.close();
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<?php
|
||||
$this->contentContainerStart();
|
||||
$this->printFoldersTree($mode, $exclude, $rootfolderid);
|
||||
$this->contentContainerEnd();
|
||||
?>
|
||||
|
||||
|
||||
<script language="JavaScript">
|
||||
targetName = opener.document.<?php echo $form?>.targetname<?php print $form ?>;
|
||||
targetID = opener.document.<?php echo $form?>.targetid<?php print $form ?>;
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,171 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of FolderNotify view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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);
|
||||
|
||||
?>
|
||||
|
||||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if ((document.form1.userid.options[document.form1.userid.selectedIndex].value == -1) &&
|
||||
(document.form1.groupid.options[document.form1.groupid.selectedIndex].value == -1))
|
||||
msg += "<?php printMLText("js_select_user_or_group");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$this->contentHeading(getMLText("edit_existing_notify"));
|
||||
$this->contentContainerStart();
|
||||
|
||||
$userNotifyIDs = array();
|
||||
$groupNotifyIDs = array();
|
||||
|
||||
print "<table class=\"defaultView\">\n";
|
||||
if (empty($notifyList["users"]) && empty($notifyList["groups"])) {
|
||||
print "<tr><td>".getMLText("empty_notify_list")."</td></tr>";
|
||||
}
|
||||
else {
|
||||
foreach ($notifyList["users"] as $userNotify) {
|
||||
print "<tr>";
|
||||
print "<td><img src=\"images/usericon.gif\" class=\"mimeicon\"></td>";
|
||||
print "<td>" . htmlspecialchars($userNotify->getFullName()) . "</td>";
|
||||
if ($user->isAdmin() || $user->getID() == $userNotify->getID()) {
|
||||
print "<td>";
|
||||
print "<form action=\"../op/op.FolderNotify.php\" method=\"post\">\n";
|
||||
echo createHiddenFieldWithKey('foldernotify')."\n";
|
||||
print "<input type=\"Hidden\" name=\"folderid\" value=\"".$folder->getID()."\">\n";
|
||||
print "<input type=\"Hidden\" name=\"action\" value=\"delnotify\">\n";
|
||||
print "<input type=\"Hidden\" name=\"userid\" value=\"".$userNotify->getID()."\">\n";
|
||||
print "<input type=\"Image\" class=\"mimeicon\" src=\"images/del.gif\">".getMLText("delete")." ";
|
||||
print "</form>\n";
|
||||
print "</td>";
|
||||
}else print "<td></td>";
|
||||
print "</tr>";
|
||||
$userNotifyIDs[] = $userNotify->getID();
|
||||
}
|
||||
|
||||
foreach ($notifyList["groups"] as $groupNotify) {
|
||||
print "<tr>";
|
||||
print "<td><img src=\"images/groupicon.gif\" class=\"mimeicon\"></td>";
|
||||
print "<td>" . htmlspecialchars($groupNotify->getName()) . "</td>";
|
||||
if ($user->isAdmin() || $groupNotify->isMember($user,true)) {
|
||||
print "<td>";
|
||||
print "<form action=\"../op/op.FolderNotify.php\" method=\"post\">\n";
|
||||
echo createHiddenFieldWithKey('foldernotify')."\n";
|
||||
print "<input type=\"Hidden\" name=\"folderid\" value=\"".$folder->getID()."\">\n";
|
||||
print "<input type=\"Hidden\" name=\"action\" value=\"delnotify\">\n";
|
||||
print "<input type=\"Hidden\" name=\"groupid\" value=\"".$groupNotify->getID()."\">\n";
|
||||
print "<input type=\"Image\" class=\"mimeicon\" src=\"images/del.gif\">".getMLText("delete")." ";
|
||||
print "</form>\n";
|
||||
print "</td>";
|
||||
}else print "<td></td>";
|
||||
print "</tr>";
|
||||
$groupNotifyIDs[] = $groupNotify->getID();
|
||||
}
|
||||
}
|
||||
print "</table>\n";
|
||||
|
||||
?>
|
||||
<br>
|
||||
<form action="../op/op.FolderNotify.php" method="post" name="form1" onsubmit="return checkForm();">
|
||||
<?php echo createHiddenFieldWithKey('foldernotify'); ?>
|
||||
<input type="Hidden" name="folderid" value="<?php print $folder->getID()?>">
|
||||
<input type="Hidden" name="action" value="addnotify">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("user");?>:</td>
|
||||
<td>
|
||||
<select name="userid">
|
||||
<option value="-1"><?php printMLText("select_one");?>
|
||||
<?php
|
||||
if ($user->isAdmin()) {
|
||||
foreach ($allUsers as $userObj) {
|
||||
if (!$userObj->isGuest() && ($folder->getAccessMode($userObj) >= M_READ) && !in_array($userObj->getID(), $userNotifyIDs))
|
||||
print "<option value=\"".$userObj->getID()."\">" . htmlspecialchars($userObj->getFullName()) . "\n";
|
||||
}
|
||||
}
|
||||
elseif (!$user->isGuest() && !in_array($user->getID(), $userNotifyIDs)) {
|
||||
print "<option value=\"".$user->getID()."\">" . htmlspecialchars($user->getFullName()) . "\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("group");?>:</td>
|
||||
<td>
|
||||
<select name="groupid">
|
||||
<option value="-1"><?php printMLText("select_one");?>
|
||||
<?php
|
||||
foreach ($allGroups as $groupObj) {
|
||||
if (($user->isAdmin() || $groupObj->isMember($user,true)) && $folder->getGroupAccessMode($groupObj) >= M_READ && !in_array($groupObj->getID(), $groupNotifyIDs)) {
|
||||
print "<option value=\"".$groupObj->getID()."\">" . htmlspecialchars($groupObj->getName()) . "\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="Submit" value="<?php printMLText("add") ?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,78 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of ForcePasswordChange view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 "<h3>".getMLText('password_expiration')."</h3>";
|
||||
echo "<p>".getMLText('password_expiration_text')."</p>";
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
<form action="../op/op.EditUserData.php" method="post" name="form1" onsubmit="return checkForm();">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("current_password");?>:</td>
|
||||
<td><input id="currentpwd" type="Password" name="currentpwd" size="30"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("password");?>:</td>
|
||||
<td><input class="pwd" type="Password" name="pwd" size="30"> <div id="outerstrength" style="min-width: 100px; height: 14px; display: inline-block; border: 1px solid black; padding: 1px;"><div id="innerstrength" style="width: 0px; height: 14px; display: inline-block; border: 0px; padding: 0px; background-color: red;"> </div> <div id="strength" style="display: inline-block;"></div></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("confirm_pwd");?>:</td>
|
||||
<td><input id="pwdconf" type="Password" name="pwdconf" size="30"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="Submit" value="<?php printMLText("submit_userinfo") ?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="fullname" value="<?php print htmlspecialchars($user->getFullName());?>" />
|
||||
<input type="hidden" name="email" value="<?php print htmlspecialchars($user->getEmail());?>" />
|
||||
<input type="hidden" name="comment" value="<?php print htmlspecialchars($user->getComment());?>" />
|
||||
</form>
|
||||
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$tmpfoot = array();
|
||||
$tmpfoot[] = "<a href=\"../op/op.Logout.php\">" . getMLText("logout") . "</a>\n";
|
||||
print "<p>";
|
||||
print implode(' | ', $tmpfoot);
|
||||
print "</p>\n";
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,243 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of GroupMgr view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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");
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
|
||||
function checkForm1(num) {
|
||||
msg = "";
|
||||
eval("var formObj = document.form" + num + "_1;");
|
||||
|
||||
if (formObj.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
|
||||
<?php
|
||||
if ($strictformcheck) {
|
||||
?>
|
||||
if (formObj.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
function checkForm2(num) {
|
||||
msg = "";
|
||||
eval("var formObj = document.form" + num + "_2;");
|
||||
|
||||
if (formObj.userid.options[formObj.userid.selectedIndex].value == -1) msg += "<?php printMLText("js_select_user");?>\n";
|
||||
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
obj = -1;
|
||||
function showUser(selectObj) {
|
||||
if (obj != -1)
|
||||
obj.style.display = "none";
|
||||
|
||||
id = selectObj.options[selectObj.selectedIndex].value;
|
||||
if (id == -1)
|
||||
return;
|
||||
|
||||
obj = document.getElementById("keywords" + id);
|
||||
obj.style.display = "";
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
$this->contentHeading(getMLText("group_management"));
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<?php echo getMLText("selection")?>:<select onchange="showUser(this)" id="selector">
|
||||
<option value="-1"><?php echo getMLText("choose_group")?>
|
||||
<option value="0"><?php echo getMLText("add_group")?>
|
||||
<?php
|
||||
$selected=0;
|
||||
$count=2;
|
||||
foreach ($allGroups as $group) {
|
||||
if ($selgroup && $group->getID()==$selgroup->getID()) $selected=$count;
|
||||
print "<option value=\"".$group->getID()."\">" . htmlspecialchars($group->getName());
|
||||
$count++;
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
|
||||
<td id="keywords0" style="display : none;">
|
||||
|
||||
<form action="../op/op.GroupMgr.php" name="form0_1" method="post" onsubmit="return checkForm1('0');">
|
||||
<?php echo createHiddenFieldWithKey('addgroup'); ?>
|
||||
<input type="Hidden" name="action" value="addgroup">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("name");?>:</td>
|
||||
<td><input name="name"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("comment");?>:</td>
|
||||
<td><textarea name="comment" rows="4" cols="50"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="<?php printMLText("add_group");?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</td>
|
||||
|
||||
<?php
|
||||
foreach ($allGroups as $group) {
|
||||
print "<td id=\"keywords".$group->getID()."\" style=\"display : none;\">";
|
||||
$this->contentSubHeading(getMLText("group")." : ".htmlspecialchars($group->getName()));
|
||||
?>
|
||||
<a href="../out/out.RemoveGroup.php?groupid=<?php print $group->getID();?>"><img src="images/del.gif" width="15" height="15" border="0" align="absmiddle" alt=""> <?php printMLText("rm_group");?></a>
|
||||
<?php $this->contentSubHeading(getMLText("edit_group"));?>
|
||||
<form action="../op/op.GroupMgr.php" name="form<?php print $group->getID();?>_1" method="post" onsubmit="return checkForm1('<?php print $group->getID();?>');">
|
||||
<?php echo createHiddenFieldWithKey('editgroup'); ?>
|
||||
<input type="Hidden" name="groupid" value="<?php print $group->getID();?>">
|
||||
<input type="Hidden" name="action" value="editgroup">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("name");?>:</td>
|
||||
<td><input name="name" value="<?php print htmlspecialchars($group->getName());?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("comment");?>:</td>
|
||||
<td><textarea name="comment" rows="4" cols="50"><?php print htmlspecialchars($group->getComment());?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="Submit" value="<?php printMLText("save");?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentSubHeading(getMLText("group_members"));
|
||||
?>
|
||||
<table class="folderView">
|
||||
<?php
|
||||
$members = $group->getUsers();
|
||||
if (count($members) == 0)
|
||||
print "<tr><td>".getMLText("no_group_members")."</td></tr>";
|
||||
else {
|
||||
|
||||
foreach ($members as $member) {
|
||||
|
||||
print "<tr>";
|
||||
print "<td><img src=\"images/usericon.gif\" width=16 height=16></td>";
|
||||
print "<td>" . htmlspecialchars($member->getFullName()) . "</td>";
|
||||
print "<td>" . ($group->isMember($member,true)?getMLText("manager"):" ") . "</td>";
|
||||
print "<td align=\"right\"><ul class=\"actions\">";
|
||||
print "<li><form action=\"../op/op.GroupMgr.php\" method=\"post\"><input type=\"hidden\" name=\"action\" value=\"rmmember\" /><input type=\"hidden\" name=\"groupid\" value=\"".$group->getID()."\" /><input type=\"hidden\" name=\"userid\" value=\"".$member->getID()."\" />".createHiddenFieldWithKey('rmmember')."<input type=\"submit\" value=\"".getMLText("delete")."\" /></form>";
|
||||
print "<li><form action=\"../op/op.GroupMgr.php\" method=\"post\"><input type=\"hidden\" name=\"groupid\" value=\"".$group->getID()."\" /><input type=\"hidden\" name=\"action\" value=\"tmanager\" /><input type=\"hidden\" name=\"userid\" value=\"".$member->getID()."\" />".createHiddenFieldWithKey('tmanager')."<input type=\"submit\" value=\"".getMLText("toggle_manager")."\" /></form>";
|
||||
print "</td></tr>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$this->contentSubHeading(getMLText("add_member"));
|
||||
?>
|
||||
|
||||
<form action="../op/op.GroupMgr.php" method="POST" name="form<?php print $group->getID();?>_2" onsubmit="return checkForm2('<?php print $group->getID();?>');">
|
||||
<?php echo createHiddenFieldWithKey('addmember'); ?>
|
||||
<input type="Hidden" name="action" value="addmember">
|
||||
<input type="Hidden" name="groupid" value="<?php print $group->getID();?>">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<select name="userid">
|
||||
<option value="-1"><?php printMLText("select_one");?>
|
||||
<?php
|
||||
foreach ($allUsers as $currUser)
|
||||
if (!$group->isMember($currUser))
|
||||
print "<option value=\"".$currUser->getID()."\">" . htmlspecialchars($currUser->getLogin()." - ".$currUser->getFullName()) . "\n";
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="manager" value="1"><?php printMLText("manager");?>
|
||||
</td>
|
||||
<td align="right">
|
||||
<input type="Submit" value="<?php printMLText("add");?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
<?php } ?>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
sel = document.getElementById("selector");
|
||||
sel.selectedIndex=<?php print $selected ?>;
|
||||
showUser(sel);
|
||||
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,103 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of GroupView view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 "<ul class=\"groupView\">\n";
|
||||
|
||||
foreach ($allGroups as $group){
|
||||
|
||||
$members = $group->getUsers();
|
||||
$managers = $group->getManagers();
|
||||
$ismanager = false; /* set to true if current user is manager */
|
||||
|
||||
echo "<li>".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 "</li>";
|
||||
|
||||
echo "<ul>\n";
|
||||
$memberids = array();
|
||||
foreach ($members as $member) {
|
||||
$memberids[] = $member->getId();
|
||||
|
||||
echo "<li>".htmlspecialchars($member->getFullName());
|
||||
if ($member->getEmail()!="")
|
||||
echo " (<a href=\"mailto:".htmlspecialchars($member->getEmail())."\">".htmlspecialchars($member->getEmail())."</a>)";
|
||||
foreach($managers as $manager)
|
||||
if($manager->getId() == $member->getId())
|
||||
echo ", ".getMLText("manager");
|
||||
if($ismanager) {
|
||||
echo ' <a href="../op/op.GroupView.php?action=del&groupid='.$group->getId().'&userid='.$member->getId().'"><img src="images/del.gif" width="15" height="15" border="0" align="absmiddle" alt=""> '.getMLText("rm_user").'</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
}
|
||||
if($ismanager) {
|
||||
echo "<li>".getMLText("add_user_to_group").":";
|
||||
echo "<form action=\"../op/op.GroupView.php\">";
|
||||
echo "<input type=\"hidden\" name=\"action\" value=\"add\" /><input type=\"hidden\" name=\"groupid\" value=\"".$group->getId()."\" />";
|
||||
echo "<select name=\"userid\" onChange=\"javascript: submit();\">";
|
||||
echo "<option value=\"\"></option>";
|
||||
foreach($allUsers as $u) {
|
||||
if(!$u->isAdmin() && !$u->isGuest() && !in_array($u->getId(), $memberids))
|
||||
echo "<option value=\"".$u->getId()."\">".htmlspecialchars($u->getFullName())."</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
echo "</form>";
|
||||
echo "</li>";
|
||||
}
|
||||
echo "</ul>\n";
|
||||
}
|
||||
echo "</ul>\n";
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,50 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of Help view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,68 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of IndexInfo view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 "<pre>";
|
||||
for ($id = 0; $id < $numDocs; $id++) {
|
||||
if (!$index->isDeleted($id)) {
|
||||
$hit = $index->getDocument($id);
|
||||
echo $hit->document_id.": ".htmlspecialchars($hit->title)."\n";
|
||||
}
|
||||
}
|
||||
echo "</pre>";
|
||||
|
||||
$terms = $index->terms();
|
||||
echo "<p>".count($terms)." Terms</p>";
|
||||
echo "<pre>";
|
||||
foreach($terms as $term) {
|
||||
echo htmlspecialchars($term->field).":".htmlspecialchars($term->text)."\n";
|
||||
}
|
||||
echo "</pre>";
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,97 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of Indexer view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 "<pre>";
|
||||
$this->tree($dms, $index, $folder);
|
||||
echo "</pre>";
|
||||
|
||||
$index->commit();
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,45 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of Info view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,220 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of KeywordChooser view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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"));
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
var targetObj = opener.document.<?php echo $target ?>;
|
||||
var myTA;
|
||||
|
||||
function insertKeywords(keywords) {
|
||||
|
||||
if (navigator.appName == "Microsoft Internet Explorer") {
|
||||
myTA.value += " " + keywords;
|
||||
}
|
||||
//assuming Mozilla
|
||||
else {
|
||||
selStart = myTA.selectionStart;
|
||||
|
||||
myTA.value = myTA.value.substring(0,myTA.selectionStart) + " "
|
||||
+ keywords
|
||||
+ myTA.value.substring(myTA.selectionStart,myTA.value.length);
|
||||
|
||||
myTA.selectionStart = selStart + keywords.length+1;
|
||||
myTA.selectionEnd = selStart + keywords.length+1;
|
||||
}
|
||||
myTA.focus();
|
||||
}
|
||||
|
||||
function cancel() {
|
||||
window.close();
|
||||
return true;
|
||||
}
|
||||
|
||||
function acceptKeywords() {
|
||||
targetObj.value = myTA.value;
|
||||
window.close();
|
||||
return true;
|
||||
}
|
||||
|
||||
obj = new Array();
|
||||
obj[0] = -1;
|
||||
obj[1] = -1;
|
||||
function showKeywords(which) {
|
||||
if (obj[which] != -1)
|
||||
obj[which].style.display = "none";
|
||||
|
||||
list = document.getElementById("categories" + which);
|
||||
|
||||
id = list.options[list.selectedIndex].value;
|
||||
if (id == -1)
|
||||
return;
|
||||
|
||||
obj[which] = document.getElementById("keywords" + id);
|
||||
obj[which].style.display = "";
|
||||
}
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<?php
|
||||
$this->contentHeading(getMLText("use_default_keywords"));
|
||||
$this->contentContainerStart();
|
||||
?>
|
||||
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td valign="top" class="inputDescription"><?php echo getMLText("keywords")?>:</td>
|
||||
<td><textarea id="keywordta" rows="5" cols="30"></textarea></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><hr></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="inputDescription"><?php echo getMLText("global_default_keywords")?>:</td>
|
||||
<td>
|
||||
<select onchange="showKeywords(0)" id="categories0">
|
||||
<option value="-1"><?php echo getMLText("choose_category")?>
|
||||
<?php
|
||||
foreach ($categories as $category) {
|
||||
$owner = $category->getOwner();
|
||||
if (!$owner->isAdmin())
|
||||
continue;
|
||||
|
||||
print "<option value=\"".$category->getID()."\">" . htmlspecialchars($category->getName());
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($categories as $category) {
|
||||
$owner = $category->getOwner();
|
||||
if (!$owner->isAdmin())
|
||||
continue;
|
||||
?>
|
||||
<tr id="keywords<?php echo $category->getID()?>" style="display : none;">
|
||||
<td valign="top" class="inputDescription"><?php echo getMLText("default_keywords")?>:</td>
|
||||
<td>
|
||||
<?php
|
||||
$lists = $category->getKeywordLists();
|
||||
|
||||
if (count($lists) == 0) print getMLText("no_default_keywords");
|
||||
else {
|
||||
print "<ul>";
|
||||
foreach ($lists as $list) {
|
||||
print "<li><a href='javascript:insertKeywords(\"".htmlspecialchars($list["keywords"])."\");'>".htmlspecialchars($list["keywords"])."</a></li>";
|
||||
}
|
||||
print "</ul>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td colspan="2"><hr></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="inputDescription"><?php echo getMLText("personal_default_keywords")?>:</td>
|
||||
<td>
|
||||
<select onchange="showKeywords(1)" id="categories1">
|
||||
<option value="-1"><?php echo getMLText("choose_category")?>
|
||||
<?php
|
||||
foreach ($categories as $category) {
|
||||
$owner = $category->getOwner();
|
||||
if ($owner->isAdmin())
|
||||
continue;
|
||||
|
||||
print "<option value=\"".$category->getID()."\">" . htmlspecialchars($category->getName());
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($categories as $category) {
|
||||
$owner = $category->getOwner();
|
||||
if ($owner->isAdmin())
|
||||
continue;
|
||||
?>
|
||||
<tr id="keywords<?php echo $category->getID()?>" style="display : none;">
|
||||
<td valign="top" class="inputDescription"><?php echo getMLText("default_keywords")?>:</td>
|
||||
<td class="standardText">
|
||||
<?php
|
||||
$lists = $category->getKeywordLists();
|
||||
if (count($lists) == 0) print getMLText("no_default_keywords");
|
||||
else {
|
||||
print "<ul>";
|
||||
foreach ($lists as $list) {
|
||||
print "<li><a href='javascript:insertKeywords(\"".htmlspecialchars($list["keywords"])."\");'>".htmlspecialchars($list["keywords"])."</a></li>";
|
||||
}
|
||||
print "</ul>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td colspan="2"><hr></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<br>
|
||||
<input type="Button" onclick="acceptKeywords();" value="<?php echo getMLText("accept")?>">
|
||||
<input type="Button" onclick="cancel();" value="<?php echo getMLText("cancel")?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
myTA = document.getElementById("keywordta");
|
||||
myTA.value = targetObj.value;
|
||||
myTA.focus();
|
||||
</script>
|
||||
<?php
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,113 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of LogManagement view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 "<table class=\"folderView\">\n";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("creation_date")."</th>\n";
|
||||
print "<th>".getMLText("file_size")."</th>\n";
|
||||
print "<th></th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
$print_header=false;
|
||||
}
|
||||
|
||||
print "<tr>\n";
|
||||
print "<td><a href=\"out.LogManagement.php?logname=".$entry."\">".$entry."</a></td>\n";
|
||||
print "<td>".getLongReadableDate(filectime($contentdir.$entry))."</td>\n";
|
||||
print "<td>".formatted_size(filesize($contentdir.$entry))."</td>\n";
|
||||
print "<td><ul class=\"actions\">";
|
||||
|
||||
print "<li><a href=\"out.RemoveLog.php?logname=".$entry."\">".getMLText("rm_file")."</a></li>";
|
||||
|
||||
print "<li><a href=\"../op/op.Download.php?logname=".$entry."\">".getMLText("download")."</a></li>";
|
||||
|
||||
print "</ul></td>\n";
|
||||
print "</tr>\n";
|
||||
}
|
||||
|
||||
if ($print_header) printMLText("empty_notify_list");
|
||||
else print "</table>\n";
|
||||
|
||||
$this->contentContainerEnd();
|
||||
|
||||
if ($logname && file_exists($contentdir.$logname)){
|
||||
|
||||
$this->contentHeading(" ");
|
||||
$this->contentContainerStart();
|
||||
|
||||
$this->contentSubHeading(sanitizeString($logname));
|
||||
|
||||
echo "<div class=\"logview\">";
|
||||
echo "<pre>\n";
|
||||
readfile($contentdir.$logname);
|
||||
echo "</pre>\n";
|
||||
echo "</div>";
|
||||
|
||||
$this->contentContainerEnd();
|
||||
}
|
||||
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,137 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of Login view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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"));
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.login.value == "") msg += "<?php printMLText("js_no_login");?>\n";
|
||||
if (document.form1.pwd.value == "") msg += "<?php printMLText("js_no_pwd");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
function guestLogin()
|
||||
{
|
||||
url = "../op/op.Login.php?login=guest" +
|
||||
"&sesstheme=" + document.form1.sesstheme.options[document.form1.sesstheme.options.selectedIndex].value +
|
||||
"&lang=" + document.form1.lang.options[document.form1.lang.options.selectedIndex].value;
|
||||
if (document.form1.referuri) {
|
||||
url += "&referuri=" + escape(document.form1.referuri.value);
|
||||
}
|
||||
document.location.href = url;
|
||||
}
|
||||
|
||||
</script>
|
||||
<?php $this->contentContainerStart(); ?>
|
||||
<form action="../op/op.Login.php" method="post" name="form1" onsubmit="return checkForm();">
|
||||
<?php
|
||||
if ($refer) {
|
||||
echo "<input type='hidden' name='referuri' value='".sanitizeString($refer)."'/>";
|
||||
}
|
||||
?>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td><?php printMLText("user_login");?></td>
|
||||
<td><input name="login" id="login"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("password");?></td>
|
||||
<td><input name="pwd" type="Password"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("language");?></td>
|
||||
<td>
|
||||
<?php
|
||||
print "<select name=\"lang\">";
|
||||
print "<option value=\"\">-";
|
||||
$languages = getLanguages();
|
||||
foreach ($languages as $currLang) {
|
||||
print "<option value=\"".$currLang."\">".getMLText($currLang)."</option>";
|
||||
}
|
||||
print "</select>";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("theme");?></td>
|
||||
<td>
|
||||
<?php
|
||||
print "<select name=\"sesstheme\">";
|
||||
print "<option value=\"\">-";
|
||||
foreach ($themes as $currTheme) {
|
||||
print "<option value=\"".$currTheme."\">".$currTheme;
|
||||
}
|
||||
print "</select>";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="Submit" value="<?php printMLText("submit_login") ?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$tmpfoot = array();
|
||||
if ($enableguestlogin)
|
||||
$tmpfoot[] = "<a href=\"javascript:guestLogin()\">" . getMLText("guest_login") . "</a>\n";
|
||||
if ($enablepasswordforgotten)
|
||||
$tmpfoot[] = "<a href=\"../out/out.PasswordForgotten.php\">" . getMLText("password_forgotten") . "</a>\n";
|
||||
if($tmpfoot) {
|
||||
print "<p>";
|
||||
print implode(' | ', $tmpfoot);
|
||||
print "</p>\n";
|
||||
}
|
||||
?>
|
||||
<script language="JavaScript">document.form1.login.focus();</script>
|
||||
<?php
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,195 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of ManageNotify view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 "<table class=\"folderView\">";
|
||||
print "<thead><tr>\n";
|
||||
print "<th></th>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("owner")."</th>\n";
|
||||
print "<th>".getMLText("actions")."</th>\n";
|
||||
print "</tr></thead>\n<tbody>\n";
|
||||
foreach($ret as $ID) {
|
||||
$fld = $this->dms->getFolder($ID);
|
||||
if (is_object($fld)) {
|
||||
$owner = $fld->getOwner();
|
||||
print "<tr class=\"folder\">";
|
||||
print "<td><img src=\"images/folder_closed.gif\" width=18 height=18 border=0></td>";
|
||||
print "<td><a href=\"../out/out.ViewFolder.php?folderid=".$ID."\">" . htmlspecialchars($fld->getName()) . "</a></td>\n";
|
||||
print "<td>".htmlspecialchars($owner->getFullName())."</td>";
|
||||
print "<td><ul class=\"actions\">";
|
||||
if ($deleteaction) print "<li><a href='../op/op.ManageNotify.php?id=".$ID."&type=folder&action=del'>".getMLText("delete")."</a>";
|
||||
else print "<li><a href='../out/out.FolderNotify.php?folderid=".$ID."'>".getMLText("edit")."</a>";
|
||||
print "</ul></td></tr>";
|
||||
}
|
||||
}
|
||||
print "</tbody></table>";
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
function printDocumentNotificationList($ret,$deleteaction=true) { /* {{{ */
|
||||
|
||||
if (count($ret)==0) {
|
||||
printMLText("empty_notify_list");
|
||||
}
|
||||
else {
|
||||
print "<table class=\"folderView\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th></th>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("owner")."</th>\n";
|
||||
print "<th>".getMLText("status")."</th>\n";
|
||||
print "<th>".getMLText("version")."</th>\n";
|
||||
print "<th>".getMLText("actions")."</th>\n";
|
||||
print "</tr></thead>\n<tbody>\n";
|
||||
foreach ($ret as $ID) {
|
||||
$doc = $this->dms->getDocument($ID);
|
||||
if (is_object($doc)) {
|
||||
$owner = $doc->getOwner();
|
||||
$latest = $doc->getLatestContent();
|
||||
$status = $latest->getStatus();
|
||||
print "<tr>\n";
|
||||
print "<td><img src=\"images/file.gif\" width=18 height=18 border=0></td>";
|
||||
print "<td><a href=\"../out/out.ViewDocument.php?documentid=".$ID."\">" . htmlspecialchars($doc->getName()) . "</a></td>\n";
|
||||
print "<td>".htmlspecialchars($owner->getFullName())."</td>";
|
||||
print "<td>".getOverallStatusText($status["status"])."</td>";
|
||||
print "<td class=\"center\">".$latest->getVersion()."</td>";
|
||||
print "<td><ul class=\"actions\">";
|
||||
if ($deleteaction) print "<li><a href='../op/op.ManageNotify.php?id=".$ID."&type=document&action=del'>".getMLText("delete")."</a>";
|
||||
else print "<li><a href='../out/out.DocumentNotify.php?documentid=".$ID."'>".getMLText("edit")."</a>";
|
||||
print "</ul></td></tr>\n";
|
||||
}
|
||||
}
|
||||
print "</tbody></table>";
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
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 "<form method=POST action=\"../op/op.ManageNotify.php?type=folder&action=add\" name=\"form1\">";
|
||||
$this->contentSubHeading(getMLText("choose_target_folder"));
|
||||
$this->printFolderChooser("form1",M_READ);
|
||||
print "<input type=\"checkbox\" name=\"recursefolder\" value=\"1\">";
|
||||
print getMLText("include_subdirectories");
|
||||
print "<input type=\"checkbox\" name=\"recursedoc\" value=\"1\">";
|
||||
print getMLText("include_documents");
|
||||
print " <input type='submit' name='' value='".getMLText("add")."'/>";
|
||||
print "</form>";
|
||||
|
||||
print "<form method=POST action=\"../op/op.ManageNotify.php?type=document&action=add\" name=\"form2\">";
|
||||
$this->contentSubHeading(getMLText("choose_target_document"));
|
||||
$this->printDocumentChooser("form2");
|
||||
print " <input type=\"Submit\" value=\"".getMLText("add")."\">";
|
||||
print "</form>";
|
||||
|
||||
$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();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,63 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of MoveDocument view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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();
|
||||
?>
|
||||
<form action="../op/op.MoveDocument.php" name="form1">
|
||||
<input type="hidden" name="documentid" value="<?php print $document->getID();?>">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("choose_target_folder");?>:</td>
|
||||
<td><?php $this->printFolderChooser("form1", M_READWRITE);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><br><input type="submit" value="<?php printMLText("move");?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,66 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of MoveFolder view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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();
|
||||
|
||||
?>
|
||||
<form action="../op/op.MoveFolder.php" name="form1">
|
||||
<input type="Hidden" name="folderid" value="<?php print $folder->getID();?>">
|
||||
<input type="Hidden" name="showtree" value="<?php echo showtree();?>">
|
||||
<table>
|
||||
<tr>
|
||||
<td><?php printMLText("choose_target_folder");?>:</td>
|
||||
<td><?php $this->printFolderChooser("form1", M_READWRITE, $folder->getID());?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="<?php printMLText("move_folder"); ?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,89 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of MyAccount view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 "<table>\n";
|
||||
|
||||
if ($enableuserimage){
|
||||
print "<tr>\n";
|
||||
print "<td rowspan=5 id=\"userImage\">".($user->hasImage() ? "<img class=\"userImage\" src=\"".$httproot . "out/out.UserImage.php?userid=".$user->getId()."\">" : getMLText("no_user_image"))."</td>\n";
|
||||
print "</tr>\n";
|
||||
}
|
||||
|
||||
print "<tr>\n";
|
||||
print "<td>".getMLText("name")." : </td>\n";
|
||||
print "<td>".htmlspecialchars($user->getFullName()).($user->isAdmin() ? " (".getMLText("admin").")" : "")."</td>\n";
|
||||
print "</tr>\n<tr>\n";
|
||||
print "<td>".getMLText("user_login")." : </td>\n";
|
||||
print "<td>".$user->getLogin()."</td>\n";
|
||||
print "</tr>\n<tr>\n";
|
||||
print "<td>".getMLText("email")." : </td>\n";
|
||||
print "<td>".htmlspecialchars($user->getEmail())."</td>\n";
|
||||
print "</tr>\n<tr>\n";
|
||||
print "<td>".getMLText("comment")." : </td>\n";
|
||||
print "<td>".htmlspecialchars($user->getComment())."</td>\n";
|
||||
print "</tr>\n";
|
||||
if($passwordexpiration > 0) {
|
||||
print "<tr>\n";
|
||||
print "<td>".getMLText("password_expiration")." : </td>\n";
|
||||
print "<td>".htmlspecialchars($user->getPwdExpiration())."</td>\n";
|
||||
print "</tr>\n";
|
||||
}
|
||||
print "<tr>\n";
|
||||
print "<td>".getMLText("quota")." : </td>\n";
|
||||
print "<td>".SeedDMS_Core_File::format_filesize($user->getQuota())."</td>\n";
|
||||
print "</tr>\n";
|
||||
print "<tr>\n";
|
||||
print "<td>".getMLText("used_discspace")." : </td>\n";
|
||||
print "<td>".SeedDMS_Core_File::format_filesize($user->getUsedDiskSpace())."</td>\n";
|
||||
print "</tr>\n";
|
||||
print "</table>\n";
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,489 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of MyDocuments view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 "<table class=\"folderView\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("owner")."</th>\n";
|
||||
print "<th>".getMLText("version")."</th>\n";
|
||||
print "<th>".getMLText("last_update")."</th>\n";
|
||||
print "<th>".getMLText("expires")."</th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
$printheader=false;
|
||||
}
|
||||
|
||||
print "<tr>\n";
|
||||
print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>";
|
||||
print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>";
|
||||
print "<td>".$st["version"]."</td>";
|
||||
print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"]) ."</td>";
|
||||
print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";
|
||||
print "</tr>\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 "<table class=\"folderView\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("owner")."</th>\n";
|
||||
print "<th>".getMLText("version")."</th>\n";
|
||||
print "<th>".getMLText("last_update")."</th>\n";
|
||||
print "<th>".getMLText("expires")."</th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
$printheader=false;
|
||||
}
|
||||
|
||||
print "<tr>\n";
|
||||
print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>";
|
||||
print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>";
|
||||
print "<td>".$st["version"]."</td>";
|
||||
print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."</td>";
|
||||
print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";
|
||||
print "</tr>\n";
|
||||
}
|
||||
}
|
||||
if (!$printheader){
|
||||
echo "</tbody>\n</table>";
|
||||
}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 "<table class=\"folderView\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("owner")."</th>\n";
|
||||
print "<th>".getMLText("version")."</th>\n";
|
||||
print "<th>".getMLText("last_update")."</th>\n";
|
||||
print "<th>".getMLText("expires")."</th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
$printheader=false;
|
||||
}
|
||||
print "<tr>\n";
|
||||
print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>";
|
||||
print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>";
|
||||
print "<td>".$st["version"]."</td>";
|
||||
print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."</td>";
|
||||
print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";
|
||||
print "</tr>\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 "<table class=\"folderView\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("owner")."</th>\n";
|
||||
print "<th>".getMLText("version")."</th>\n";
|
||||
print "<th>".getMLText("last_update")."</th>\n";
|
||||
print "<th>".getMLText("expires")."</th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
$printheader=false;
|
||||
}
|
||||
print "<tr>\n";
|
||||
print "<td><a href=\"out.ViewDocument.php?documentid=".$st["documentID"]."\">".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."</a></td>";
|
||||
print "<td>".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."</td>";
|
||||
print "<td>".$st["version"]."</td>";
|
||||
print "<td>".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."</td>";
|
||||
print "<td".($docIdx[$st["documentID"]][$st["version"]]['status']!=S_EXPIRED?"":" class=\"warning\"").">".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"]))."</td>";
|
||||
print "</tr>\n";
|
||||
}
|
||||
}
|
||||
if (!$printheader){
|
||||
echo "</tbody>\n</table>\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 "<table class=\"folderView\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("status")."</th>\n";
|
||||
print "<th>".getMLText("version")."</th>\n";
|
||||
print "<th>".getMLText("last_update")."</th>\n";
|
||||
print "<th>".getMLText("expires")."</th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\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 "<tr>\n";
|
||||
print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."\">" . htmlspecialchars($res["name"]) . "</a></td>\n";
|
||||
print "<td>".getOverallStatusText($res["status"])."</td>";
|
||||
print "<td>".$res["version"]."</td>";
|
||||
print "<td>".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."</td>";
|
||||
print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";
|
||||
print "</tr>\n";
|
||||
}
|
||||
print "</tbody></table>";
|
||||
|
||||
}
|
||||
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 "<table class=\"folderView\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("status")."</th>\n";
|
||||
print "<th>".getMLText("version")."</th>\n";
|
||||
print "<th>".getMLText("last_update")."</th>\n";
|
||||
print "<th>".getMLText("expires")."</th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\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 "<tr>\n";
|
||||
print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."\">" . htmlspecialchars($res["name"]) . "</a></td>\n";
|
||||
print "<td>".getOverallStatusText($res["status"])."</td>";
|
||||
print "<td>".$res["version"]."</td>";
|
||||
print "<td>".$res["statusDate"]." ".htmlspecialchars($res["statusName"])."</td>";
|
||||
print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";
|
||||
print "</tr>\n";
|
||||
}
|
||||
print "</tbody></table>";
|
||||
|
||||
}
|
||||
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 "<table class=\"folderView\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th><a href=\"../out/out.MyDocuments.php?orderby=n\">".getMLText("name")."</a></th>\n";
|
||||
print "<th><a href=\"../out/out.MyDocuments.php?orderby=s\">".getMLText("status")."</a></th>\n";
|
||||
print "<th>".getMLText("version")."</th>\n";
|
||||
print "<th><a href=\"../out/out.MyDocuments.php?orderby=u\">".getMLText("last_update")."</a></th>\n";
|
||||
print "<th><a href=\"../out/out.MyDocuments.php?orderby=e\">".getMLText("expires")."</a></th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\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 "<tr>\n";
|
||||
print "<td><a href=\"out.ViewDocument.php?documentid=".$res["documentID"]."\">" . htmlspecialchars($res["name"]) . "</a></td>\n";
|
||||
print "<td>".getOverallStatusText($res["status"])."</td>";
|
||||
print "<td>".$res["version"]."</td>";
|
||||
print "<td>".$res["statusDate"]." ". htmlspecialchars($res["statusName"])."</td>";
|
||||
//print "<td>".(!$res["expires"] ? getMLText("does_not_expire"):getReadableDate($res["expires"]))."</td>";
|
||||
print "<td>".(!$res["expires"] ? "-":getReadableDate($res["expires"]))."</td>";
|
||||
print "</tr>\n";
|
||||
}
|
||||
print "</tbody></table>";
|
||||
}
|
||||
else printMLText("empty_notify_list");
|
||||
|
||||
$this->contentContainerEnd();
|
||||
}
|
||||
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,216 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of ObjectCheck view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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 "<tr>\n";
|
||||
$this->needsrepair = true;
|
||||
print "<td><a class=\"standardText\" href=\"../out/out.ViewFolder.php?folderid=".$folder->getID()."\"><img src=\"../out/images/folder_closed.gif\" width=18 height=18 border=0></a></td>";
|
||||
print "<td><a class=\"standardText\" href=\"../out/out.ViewFolder.php?folderid=".$folder->getID()."\">";
|
||||
$tmppath = $folder->getPath();
|
||||
for ($i = 1; $i < count($tmppath); $i++) {
|
||||
print "/".htmlspecialchars($tmppath[$i]->getName());
|
||||
}
|
||||
print $folder->getName();
|
||||
print "</a></td>";
|
||||
|
||||
$owner = $folder->getOwner();
|
||||
print "<td>".htmlspecialchars($owner->getFullName())."</td>";
|
||||
print "<td>Folderlist is '".$folderList."', should be '".$path."'</td>";
|
||||
if($repair) {
|
||||
$folder->repair();
|
||||
print "<td><span class=\"success\">Repaired</span></td>\n";
|
||||
} else {
|
||||
print "<td></td>\n";
|
||||
}
|
||||
print "</tr>\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 "<tr>\n";
|
||||
$this->needsrepair = true;
|
||||
$lc = $document->getLatestContent();
|
||||
print "<td><a class=\"standardText\" href=\"../out/out.ViewDocument.php?documentid=".$document->getID()."\"><img class=\"mimeicon\" src=\"../out/images/icons/".UI::getMimeIcon($lc->getFileType())."\" title=\"".$lc->getMimeType()."\"></a></td>";
|
||||
print "<td><a class=\"standardText\" href=\"../out/out.ViewDocument.php?documentid=".$document->getID()."\">/";
|
||||
$folder = $document->getFolder();
|
||||
$tmppath = $folder->getPath();
|
||||
for ($i = 1; $i < count($tmppath); $i++) {
|
||||
print htmlspecialchars($tmppath[$i]->getName())."/";
|
||||
}
|
||||
print htmlspecialchars($document->getName());
|
||||
print "</a></td>";
|
||||
$owner = $document->getOwner();
|
||||
print "<td>".htmlspecialchars($owner->getFullName())."</td>";
|
||||
print "<td>Folderlist is '".$folderList."', should be '".$path."'</td>";
|
||||
if($repair) {
|
||||
$document->repair();
|
||||
print "<td><span class=\"success\">Repaired</span></td>\n";
|
||||
} else {
|
||||
print "<td></td>\n";
|
||||
}
|
||||
print "</tr>\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 "<tr>\n";
|
||||
print "<td><a class=\"standardText\" href=\"../out/out.ViewDocument.php?documentid=".$document->getID()."\"><img class=\"mimeicon\" src=\"../out/images/icons/".UI::getMimeIcon($version->getFileType())."\" title=\"".$version->getMimeType()."\"></a></td>";
|
||||
print "<td><a class=\"standardText\" href=\"../out/out.ViewDocument.php?documentid=".$document->getID()."\">/";
|
||||
$folder = $document->getFolder();
|
||||
$tmppath = $folder->getPath();
|
||||
for ($i = 1; $i < count($tmppath); $i++) {
|
||||
print htmlspecialchars($tmppath[$i]->getName())."/";
|
||||
}
|
||||
print htmlspecialchars($document->getName());
|
||||
print "</a></td>";
|
||||
$owner = $document->getOwner();
|
||||
print "<td>".htmlspecialchars($owner->getFullName())."</td>";
|
||||
print "<td>Document content of version ".$version->getVersion()." is missing ('".$path."')</td>";
|
||||
if($repair) {
|
||||
print "<td><span class=\"warning\">Cannot repaired</span></td>\n";
|
||||
} else {
|
||||
print "<td></td>\n";
|
||||
}
|
||||
print "</tr>\n";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
print "<tr>\n";
|
||||
print "<td></td>\n";
|
||||
print "<td><a class=\"standardText\" href=\"../out/out.ViewDocument.php?documentid=".$document->getID()."\">/";
|
||||
$folder = $document->getFolder();
|
||||
$tmppath = $folder->getPath();
|
||||
for ($i = 1; $i < count($tmppath); $i++) {
|
||||
print htmlspecialchars($tmppath[$i]->getName())."/";
|
||||
}
|
||||
print htmlspecialchars($document->getName());
|
||||
print "</a></td>";
|
||||
$owner = $document->getOwner();
|
||||
print "<td>".htmlspecialchars($owner->getFullName())."</td>";
|
||||
print "<td>Document has no content! Delete the document manually.</td>";
|
||||
print "</tr>\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 "<p>".getMLText('repairing_objects')."</p>";
|
||||
}
|
||||
print "<table class=\"folderView\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th></th>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("owner")."</th>\n";
|
||||
print "<th>".getMLText("error")."</th>\n";
|
||||
print "<th></th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
$this->needsrepair = false;
|
||||
$this->tree($dms, $folder, $repair);
|
||||
print "</tbody></table>\n";
|
||||
|
||||
if($this->needsrepair && $repair == 0) {
|
||||
echo '<p><a href="out.ObjectCheck.php?repair=1">'.getMLText('do_object_repair').'</a></p>';
|
||||
}
|
||||
$this->contentContainerEnd();
|
||||
|
||||
$this->contentHeading(getMLText("unlinked_content"));
|
||||
$this->contentContainerStart();
|
||||
if($unlink) {
|
||||
echo "<p>".getMLText('unlinking_objects')."</p>";
|
||||
}
|
||||
|
||||
if($unlinkedversions) {
|
||||
print "<table class=\"folderView\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText("document")."</th>\n";
|
||||
print "<th>".getMLText("version")."</th>\n";
|
||||
print "<th>".getMLText("original_filename")."</th>\n";
|
||||
print "<th>".getMLText("mimetype")."</th>\n";
|
||||
print "<th></th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
foreach($unlinkedversions as $version) {
|
||||
$doc = $version->getDocument();
|
||||
print "<tr><td>".$doc->getId()."</td><td>".$version->getVersion()."</td><td>".$version->getOriginalFileName()."</td><td>".$version->getMimeType()."</td>";
|
||||
if($unlink) {
|
||||
$doc->removeContent($version);
|
||||
}
|
||||
print "</tr>\n";
|
||||
}
|
||||
print "</tbody></table>\n";
|
||||
if($unlink == 0) {
|
||||
echo '<p><a href="out.ObjectCheck.php?unlink=1">'.getMLText('do_object_unlink').'</a></p>';
|
||||
}
|
||||
}
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,99 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of OverrideContentStatus view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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"));
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function checkForm()
|
||||
{
|
||||
msg = "";
|
||||
if (document.form1.overrideStatus.value == "") msg += "<?php printMLText("js_no_override_status");?>\n";
|
||||
if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
|
||||
if (msg != "")
|
||||
{
|
||||
alert(msg);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
|
||||
$this->contentContainerStart();
|
||||
|
||||
// Display the Review form.
|
||||
?>
|
||||
<form method="post" action="../op/op.OverrideContentStatus.php" name="form1" onsubmit="return checkForm();">
|
||||
<table>
|
||||
<tr><td><?php echo(printMLText("comment")); ?>:</td>
|
||||
<td><textarea name="comment" cols="40" rows="4"></textarea>
|
||||
</td></tr>
|
||||
<tr><td><?php echo(printMLText("status")); ?>:</td>
|
||||
<td><select name="overrideStatus">
|
||||
<option value=''></option>
|
||||
<?php
|
||||
|
||||
if ($overallStatus["status"] == S_OBSOLETE) echo "<option value='".S_RELEASED."'>".getOverallStatusText(S_RELEASED)."</option>";
|
||||
if ($overallStatus["status"] == S_RELEASED) echo "<option value='".S_OBSOLETE."'>".getOverallStatusText(S_OBSOLETE)."</option>";
|
||||
|
||||
?>
|
||||
</select>
|
||||
</td></tr><tr><td></td><td>
|
||||
<input type='hidden' name='documentid' value='<?php echo $document->getID() ?>'/>
|
||||
<input type='hidden' name='version' value='<?php echo $content->getVersion() ?>'/>
|
||||
<input type='submit' name='overrideContentStatus' value='<?php echo(printMLText("update")); ?>'/>
|
||||
</td></tr></table>
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,71 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of PasswordForgotten view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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"));
|
||||
?>
|
||||
|
||||
<?php $this->contentContainerStart(); ?>
|
||||
<form action="../op/op.PasswordForgotten.php" method="post" name="form1" onsubmit="return checkForm();">
|
||||
<?php
|
||||
if ($referrer) {
|
||||
echo "<input type='hidden' name='referuri' value='".$referrer."'/>";
|
||||
}
|
||||
?>
|
||||
<p><?php printMLText("password_forgotten_text"); ?></p>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td><?php printMLText("login");?>:</td>
|
||||
<td><input type="text" name="login" id="login"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php printMLText("email");?>:</td>
|
||||
<td><input type="text" name="email" id="email"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" value="<?php printMLText("submit_password_forgotten") ?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php $this->contentContainerEnd(); ?>
|
||||
<script language="JavaScript">document.form1.email.focus();</script>
|
||||
<p><a href="../out/out.Login.php"><?php echo getMLText("login"); ?></a></p>
|
||||
<?php
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
|
@ -1,57 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Implementation of RemoveArchive view
|
||||
*
|
||||
* @category DMS
|
||||
* @package SeedDMS
|
||||
* @license GPL 2
|
||||
* @version @version@
|
||||
* @author Uwe Steinmann <uwe@steinmann.cx>
|
||||
* @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 <uwe@steinmann.cx>
|
||||
* @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();
|
||||
|
||||
?>
|
||||
<form action="../op/op.RemoveArchive.php" name="form1" method="post">
|
||||
<input type="hidden" name="arkname" value="<?php echo htmlspecialchars($arkname); ?>">
|
||||
<?php echo createHiddenFieldWithKey('removearchive'); ?>
|
||||
<p><?php printMLText("confirm_rm_backup", array ("arkname" => htmlspecialchars($arkname)));?></p>
|
||||
<input type="submit" value="<?php printMLText("backup_remove");?>">
|
||||
</form>
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user