diff --git a/core/dashboard/app_config.php b/core/dashboard/app_config.php index 25075fecaf..f35483da4b 100644 --- a/core/dashboard/app_config.php +++ b/core/dashboard/app_config.php @@ -72,15 +72,30 @@ $apps[$x]['db'][$y]['fields'][$z]['search_by'] = ''; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard path.'; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_icon'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['search_by'] = ''; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard icon.'; + $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_url'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['search_by'] = ''; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard url.'; $z++; - $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_icon'; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_target'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['search_by'] = ''; - $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard icon.'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard target.'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_content'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['search_by'] = ''; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard top content.'; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_content_details'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['search_by'] = ''; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard top content details.'; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_chart_type'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; diff --git a/core/dashboard/app_languages.php b/core/dashboard/app_languages.php index 88674a28dd..1bdc15bb12 100644 --- a/core/dashboard/app_languages.php +++ b/core/dashboard/app_languages.php @@ -234,6 +234,84 @@ $text['label-dashboard_groups']['zh-cn'] = "团体"; $text['label-dashboard_groups']['ja-jp'] = "グループ"; $text['label-dashboard_groups']['ko-kr'] = "여러 떼"; +$text['description-dashboard_target']['en-us'] = "Specify the target of the Link."; +$text['description-dashboard_target']['en-gb'] = "Specify the target of the Link."; +$text['description-dashboard_target']['ar-eg'] = "حدد هدف الارتباط."; +$text['description-dashboard_target']['de-at'] = "Geben Sie das Ziel des Links an."; +$text['description-dashboard_target']['de-ch'] = "Geben Sie das Ziel des Links an."; +$text['description-dashboard_target']['de-de'] = "Geben Sie das Ziel des Links an."; +$text['description-dashboard_target']['el-gr'] = "Καθορίστε τον στόχο του συνδέσμου."; +$text['description-dashboard_target']['es-cl'] = "Especifique el destino del enlace."; +$text['description-dashboard_target']['es-mx'] = "Especifique el destino del enlace."; +$text['description-dashboard_target']['fr-ca'] = "Spécifiez la cible du lien."; +$text['description-dashboard_target']['fr-fr'] = "Spécifiez la cible du lien."; +$text['description-dashboard_target']['he-il'] = "ציין את היעד של הקישור."; +$text['description-dashboard_target']['it-it'] = "Specificare la destinazione del collegamento."; +$text['description-dashboard_target']['nl-nl'] = "Geef het doel van de link op."; +$text['description-dashboard_target']['pl-pl'] = "Określ cel łącza."; +$text['description-dashboard_target']['pt-br'] = "Especifique o destino do link."; +$text['description-dashboard_target']['pt-pt'] = "Especifique o destino do link."; +$text['description-dashboard_target']['ro-ro'] = "Specificați ținta Link-ului."; +$text['description-dashboard_target']['ru-ru'] = "Укажите цель ссылки."; +$text['description-dashboard_target']['sv-se'] = "Ange målet för länken."; +$text['description-dashboard_target']['uk-ua'] = "Укажіть ціль посилання."; +$text['description-dashboard_target']['tr-tr'] = "Bağlantının hedefini belirtin."; +$text['description-dashboard_target']['zh-cn'] = "指定链接的目标。"; +$text['description-dashboard_target']['ja-jp'] = "リンクのターゲットを指定します。"; +$text['description-dashboard_target']['ko-kr'] = "링크의 대상을 지정합니다."; + +$text['description-dashboard_content']['en-us'] = "Enter the content (text) to display in the top section of the widget."; +$text['description-dashboard_content']['en-gb'] = "Enter the content (text) to display in the top section of the widget."; +$text['description-dashboard_content']['ar-eg'] = "أدخل المحتوى (النص) لعرضه في القسم العلوي من الأداة."; +$text['description-dashboard_content']['de-at'] = "Geben Sie Inhalt (Text) ein, der im oberen Abschnitt des Widgets angezeigt werden soll."; +$text['description-dashboard_content']['de-ch'] = "Geben Sie Inhalt (Text) ein, der im oberen Abschnitt des Widgets angezeigt werden soll."; +$text['description-dashboard_content']['de-de'] = "Geben Sie Inhalt (Text) ein, der im oberen Abschnitt des Widgets angezeigt werden soll."; +$text['description-dashboard_content']['el-gr'] = "Εισαγάγετε περιεχόμενο (κείμενο) για εμφάνιση στην επάνω ενότητα του γραφικού στοιχείου."; +$text['description-dashboard_content']['es-cl'] = "Ingrese el contenido (texto) para mostrar en la sección superior del widget."; +$text['description-dashboard_content']['es-mx'] = "Ingrese el contenido (texto) para mostrar en la sección superior del widget."; +$text['description-dashboard_content']['fr-ca'] = "Saisissez le contenu (texte) à afficher dans la section supérieure du widget."; +$text['description-dashboard_content']['fr-fr'] = "Saisissez le contenu (texte) à afficher dans la section supérieure du widget."; +$text['description-dashboard_content']['he-il'] = "הזן תוכן (טקסט) להצגה בחלק העליון של הווידג'ט."; +$text['description-dashboard_content']['it-it'] = "Inserisci il contenuto (testo) da visualizzare nella sezione superiore del widget."; +$text['description-dashboard_content']['nl-nl'] = "Voer inhoud (tekst) in die in het bovenste gedeelte van de widget moet worden weergegeven."; +$text['description-dashboard_content']['pl-pl'] = "Wprowadź treść (tekst), która będzie wyświetlana w górnej części widżetu."; +$text['description-dashboard_content']['pt-br'] = "Insira o conteúdo (texto) a ser exibido na seção superior do widget."; +$text['description-dashboard_content']['pt-pt'] = "Insira o conteúdo (texto) a ser exibido na seção superior do widget."; +$text['description-dashboard_content']['ro-ro'] = "Introduceți conținut (text) de afișat în secțiunea de sus a widget-ului."; +$text['description-dashboard_content']['ru-ru'] = "Введите контент (текст), который будет отображаться в верхней части виджета."; +$text['description-dashboard_content']['sv-se'] = "Ange innehåll (text) som ska visas i den övre delen av widgeten."; +$text['description-dashboard_content']['uk-ua'] = "Введіть вміст (текст) для відображення у верхній частині віджета."; +$text['description-dashboard_content']['tr-tr'] = "Widget'ın üst bölümünde görüntülenecek içeriği (metni) girin."; +$text['description-dashboard_content']['zh-cn'] = "输入要显示在小部件顶部的内容(文本)。"; +$text['description-dashboard_content']['ja-jp'] = "ウィジェットの上部セクションに表示するコンテンツ (テキスト) を入力します。"; +$text['description-dashboard_content']['ko-kr'] = "위젯 상단에 표시할 내용(텍스트)을 입력하세요."; + +$text['description-dashboard_content_details']['en-us'] = "Enter the content (text) to display in the bottom section of the widget."; +$text['description-dashboard_content_details']['en-gb'] = "Enter the content (text) to display in the bottom section of the widget."; +$text['description-dashboard_content_details']['ar-eg'] = "أدخل المحتوى (النص) الذي سيتم عرضه في القسم السفلي من الأداة."; +$text['description-dashboard_content_details']['de-at'] = "Geben Sie den Inhalt (Text) ein, der im unteren Abschnitt des Widgets angezeigt werden soll."; +$text['description-dashboard_content_details']['de-ch'] = "Geben Sie den Inhalt (Text) ein, der im unteren Abschnitt des Widgets angezeigt werden soll."; +$text['description-dashboard_content_details']['de-de'] = "Geben Sie den Inhalt (Text) ein, der im unteren Abschnitt des Widgets angezeigt werden soll."; +$text['description-dashboard_content_details']['el-gr'] = "Εισαγάγετε το περιεχόμενο (κείμενο) που θα εμφανιστεί στο κάτω τμήμα του γραφικού στοιχείου."; +$text['description-dashboard_content_details']['es-cl'] = "Ingrese el contenido (texto) para mostrar en la sección inferior del widget."; +$text['description-dashboard_content_details']['es-mx'] = "Ingrese el contenido (texto) para mostrar en la sección inferior del widget."; +$text['description-dashboard_content_details']['fr-ca'] = "Saisissez le contenu (texte) à afficher dans la section inférieure du widget."; +$text['description-dashboard_content_details']['fr-fr'] = "Saisissez le contenu (texte) à afficher dans la section inférieure du widget."; +$text['description-dashboard_content_details']['he-il'] = "הזן את התוכן (טקסט) שיוצג בחלק התחתון של הווידג'ט."; +$text['description-dashboard_content_details']['it-it'] = "Inserisci il contenuto (testo) da visualizzare nella sezione inferiore del widget."; +$text['description-dashboard_content_details']['nl-nl'] = "Voer de inhoud (tekst) in die in het onderste gedeelte van de widget moet worden weergegeven."; +$text['description-dashboard_content_details']['pl-pl'] = "Wprowadź treść (tekst), która będzie wyświetlana w dolnej części widżetu."; +$text['description-dashboard_content_details']['pt-br'] = "Insira o conteúdo (texto) a ser exibido na seção inferior do widget."; +$text['description-dashboard_content_details']['pt-pt'] = "Insira o conteúdo (texto) a ser exibido na seção inferior do widget."; +$text['description-dashboard_content_details']['ro-ro'] = "Introduceți conținutul (textul) de afișat în secțiunea de jos a widget-ului."; +$text['description-dashboard_content_details']['ru-ru'] = "Введите содержимое (текст), которое будет отображаться в нижней части виджета."; +$text['description-dashboard_content_details']['sv-se'] = "Ange innehållet (texten) som ska visas i den nedre delen av widgeten."; +$text['description-dashboard_content_details']['uk-ua'] = "Введіть вміст (текст) для відображення в нижній частині віджета."; +$text['description-dashboard_content_details']['tr-tr'] = "Widget'ın alt bölümünde görüntülenecek içeriği (metni) girin."; +$text['description-dashboard_content_details']['zh-cn'] = "输入要在小部件底部显示的内容(文本)。"; +$text['description-dashboard_content_details']['ja-jp'] = "ウィジェットの下部に表示するコンテンツ (テキスト) を入力します。"; +$text['description-dashboard_content_details']['ko-kr'] = "위젯 하단에 표시할 내용(텍스트)을 입력하세요."; + $text['description-dashboard_groups']['en-us'] = "Add the groups that have permission to this widget."; $text['description-dashboard_groups']['en-gb'] = "Add the groups that have permission to this widget."; $text['description-dashboard_groups']['ar-eg'] = "أضف المجموعات التي لديها إذن إلى هذه الأداة."; @@ -652,55 +730,55 @@ $text['description-dashboard_column_span']['ko-kr'] = "대시보드 위젯 열 $text['label-dashboard_row_span']['en-us'] = "Row Span"; $text['label-dashboard_row_span']['en-gb'] = "Row Span"; -$text['label-dashboard_row_span']['ar-eg'] = ""; -$text['label-dashboard_row_span']['de-at'] = ""; -$text['label-dashboard_row_span']['de-ch'] = ""; -$text['label-dashboard_row_span']['de-de'] = ""; -$text['label-dashboard_row_span']['el-gr'] = ""; -$text['label-dashboard_row_span']['es-cl'] = ""; -$text['label-dashboard_row_span']['es-mx'] = ""; -$text['label-dashboard_row_span']['fr-ca'] = ""; -$text['label-dashboard_row_span']['fr-fr'] = ""; -$text['label-dashboard_row_span']['he-il'] = ""; -$text['label-dashboard_row_span']['it-it'] = ""; -$text['label-dashboard_row_span']['nl-nl'] = ""; -$text['label-dashboard_row_span']['pl-pl'] = ""; -$text['label-dashboard_row_span']['pt-br'] = ""; -$text['label-dashboard_row_span']['pt-pt'] = ""; -$text['label-dashboard_row_span']['ro-ro'] = ""; -$text['label-dashboard_row_span']['ru-ru'] = ""; -$text['label-dashboard_row_span']['sv-se'] = ""; -$text['label-dashboard_row_span']['uk-ua'] = ""; -$text['label-dashboard_row_span']['tr-tr'] = ""; -$text['label-dashboard_row_span']['zh-cn'] = ""; -$text['label-dashboard_row_span']['ja-jp'] = ""; -$text['label-dashboard_row_span']['ko-kr'] = ""; +$text['label-dashboard_row_span']['ar-eg'] = "نطاق الصف"; +$text['label-dashboard_row_span']['de-at'] = "Zeilenspanne"; +$text['label-dashboard_row_span']['de-ch'] = "Zeilenspanne"; +$text['label-dashboard_row_span']['de-de'] = "Zeilenspanne"; +$text['label-dashboard_row_span']['el-gr'] = "Άνοιγμα σειράς"; +$text['label-dashboard_row_span']['es-cl'] = "Distancia entre filas"; +$text['label-dashboard_row_span']['es-mx'] = "Distancia entre filas"; +$text['label-dashboard_row_span']['fr-ca'] = "Portée des lignes"; +$text['label-dashboard_row_span']['fr-fr'] = "Portée des lignes"; +$text['label-dashboard_row_span']['he-il'] = "טווח שורה"; +$text['label-dashboard_row_span']['it-it'] = "Intervallo di riga"; +$text['label-dashboard_row_span']['nl-nl'] = "Rij-spanwijdte"; +$text['label-dashboard_row_span']['pl-pl'] = "Rozpiętość wierszy"; +$text['label-dashboard_row_span']['pt-br'] = "Expansão de linha"; +$text['label-dashboard_row_span']['pt-pt'] = "Expansão de linha"; +$text['label-dashboard_row_span']['ro-ro'] = "Row Span"; +$text['label-dashboard_row_span']['ru-ru'] = "Диапазон строк"; +$text['label-dashboard_row_span']['sv-se'] = "Radspann"; +$text['label-dashboard_row_span']['uk-ua'] = "Radspann"; +$text['label-dashboard_row_span']['tr-tr'] = "Satır Aralığı"; +$text['label-dashboard_row_span']['zh-cn'] = "行跨度"; +$text['label-dashboard_row_span']['ja-jp'] = "行スパン"; +$text['label-dashboard_row_span']['ko-kr'] = "행 범위"; $text['description-dashboard_row_span']['en-us'] = "Enter the dashboard widget row span."; $text['description-dashboard_row_span']['en-gb'] = "Enter the dashboard widget row span."; -$text['description-dashboard_row_span']['ar-eg'] = ""; -$text['description-dashboard_row_span']['de-at'] = ""; -$text['description-dashboard_row_span']['de-ch'] = ""; -$text['description-dashboard_row_span']['de-de'] = ""; -$text['description-dashboard_row_span']['el-gr'] = ""; -$text['description-dashboard_row_span']['es-cl'] = ""; -$text['description-dashboard_row_span']['es-mx'] = ""; -$text['description-dashboard_row_span']['fr-ca'] = ""; -$text['description-dashboard_row_span']['fr-fr'] = ""; -$text['description-dashboard_row_span']['he-il'] = ""; -$text['description-dashboard_row_span']['it-it'] = ""; -$text['description-dashboard_row_span']['nl-nl'] = ""; -$text['description-dashboard_row_span']['pl-pl'] = ""; -$text['description-dashboard_row_span']['pt-br'] = ""; -$text['description-dashboard_row_span']['pt-pt'] = ""; -$text['description-dashboard_row_span']['ro-ro'] = ""; -$text['description-dashboard_row_span']['ru-ru'] = ""; -$text['description-dashboard_row_span']['sv-se'] = ""; -$text['description-dashboard_row_span']['uk-ua'] = ""; -$text['description-dashboard_row_span']['tr-tr'] = ""; -$text['description-dashboard_row_span']['zh-cn'] = ""; -$text['description-dashboard_row_span']['ja-jp'] = ""; -$text['description-dashboard_row_span']['ko-kr'] = ""; +$text['description-dashboard_row_span']['ar-eg'] = "أدخل نطاق صف أداة لوحة المعلومات."; +$text['description-dashboard_row_span']['de-at'] = "Geben Sie die Zeilenspanne des Dashboard-Widgets ein."; +$text['description-dashboard_row_span']['de-ch'] = "Geben Sie die Zeilenspanne des Dashboard-Widgets ein."; +$text['description-dashboard_row_span']['de-de'] = "Geben Sie die Zeilenspanne des Dashboard-Widgets ein."; +$text['description-dashboard_row_span']['el-gr'] = "Εισαγάγετε το εύρος της γραμμής του γραφικού στοιχείου του πίνακα εργαλείων."; +$text['description-dashboard_row_span']['es-cl'] = "Ingrese el intervalo de filas del widget del panel."; +$text['description-dashboard_row_span']['es-mx'] = "Ingrese el intervalo de filas del widget del panel."; +$text['description-dashboard_row_span']['fr-ca'] = "Entrez l'étendue des lignes du widget du tableau de bord."; +$text['description-dashboard_row_span']['fr-fr'] = "Entrez l'étendue des lignes du widget du tableau de bord."; +$text['description-dashboard_row_span']['he-il'] = "הזן את טווח שורות הווידג'ט של לוח המחוונים."; +$text['description-dashboard_row_span']['it-it'] = "Inserisci l'intervallo di righe del widget del dashboard."; +$text['description-dashboard_row_span']['nl-nl'] = "Voer de rijreeks van de dashboardwidget in."; +$text['description-dashboard_row_span']['pl-pl'] = "Insira a extensão da linha do widget do painel."; +$text['description-dashboard_row_span']['pt-br'] = "Insira a extensão da linha do widget do painel."; +$text['description-dashboard_row_span']['pt-pt'] = "Insira a extensão da linha do widget do painel."; +$text['description-dashboard_row_span']['ro-ro'] = "Introduceți intervalul de rânduri widget din tabloul de bord."; +$text['description-dashboard_row_span']['ru-ru'] = "Введите диапазон строк виджета информационной панели."; +$text['description-dashboard_row_span']['sv-se'] = "Ange radspann för instrumentpanelens widget."; +$text['description-dashboard_row_span']['uk-ua'] = "Введіть діапазон рядків віджета інформаційної панелі."; +$text['description-dashboard_row_span']['tr-tr'] = "Kontrol paneli widget'ı satır aralığını girin."; +$text['description-dashboard_row_span']['zh-cn'] = "输入仪表板小部件行跨度。"; +$text['description-dashboard_row_span']['ja-jp'] = "ダッシュボード ウィジェットの行範囲を入力します。"; +$text['description-dashboard_row_span']['ko-kr'] = "대시보드 위젯 행 범위를 입력합니다."; $text['label-dashboard_details_state']['en-us'] = "Details State"; $text['label-dashboard_details_state']['en-gb'] = "Details State"; diff --git a/core/dashboard/dashboard_edit.php b/core/dashboard/dashboard_edit.php index a93c9b1e55..830323ce35 100644 --- a/core/dashboard/dashboard_edit.php +++ b/core/dashboard/dashboard_edit.php @@ -42,8 +42,12 @@ //set the defaults $dashboard_name = ''; $dashboard_path = 'core/dashboard/resources/dashboard/icon.php'; - $dashboard_url = ''; +// $dashboard_path = ''; $dashboard_icon = ''; + $dashboard_url = ''; + $dashboard_target = 'self'; + $dashboard_content = ''; + $dashboard_content_details = ''; $dashboard_heading_text_color = ''; $dashboard_heading_background_color = ''; $dashboard_number_text_color = ''; @@ -72,6 +76,9 @@ $dashboard_path = $_POST["dashboard_path"] ?? ''; $dashboard_icon = $_POST["dashboard_icon"] ?? ''; $dashboard_url = $_POST["dashboard_url"] ?? ''; + $dashboard_target = $_POST["dashboard_target"] ?? 'self'; + $dashboard_content = $_POST["dashboard_content"] ?? ''; + $dashboard_content_details = $_POST["dashboard_content_details"] ?? ''; $dashboard_groups = $_POST["dashboard_groups"] ?? ''; $dashboard_chart_type = $_POST["dashboard_chart_type"] ?? ''; $dashboard_heading_text_color = $_POST["dashboard_heading_text_color"] ?? ''; @@ -204,6 +211,9 @@ $array['dashboard'][0]['dashboard_path'] = $dashboard_path; $array['dashboard'][0]['dashboard_icon'] = $dashboard_icon; $array['dashboard'][0]['dashboard_url'] = $dashboard_url; + $array['dashboard'][0]['dashboard_target'] = $dashboard_target; + $array['dashboard'][0]['dashboard_content'] = $dashboard_content; + $array['dashboard'][0]['dashboard_content_details'] = $dashboard_content_details; $array['dashboard'][0]['dashboard_chart_type'] = $dashboard_chart_type; $array['dashboard'][0]['dashboard_heading_text_color'] = $dashboard_heading_text_color; $array['dashboard'][0]['dashboard_heading_background_color'] = $dashboard_heading_background_color; @@ -226,7 +236,7 @@ } } } -//view_array($array); + //save the data $database = new database; $database->app_name = 'dashboard'; @@ -258,6 +268,9 @@ $sql .= " dashboard_path, "; $sql .= " dashboard_icon, "; $sql .= " dashboard_url, "; + $sql .= " dashboard_target, "; + $sql .= " dashboard_content, "; + $sql .= " dashboard_content_details, "; $sql .= " dashboard_chart_type, "; $sql .= " dashboard_heading_text_color, "; $sql .= " dashboard_heading_background_color, "; @@ -280,6 +293,9 @@ $dashboard_path = $row["dashboard_path"]; $dashboard_icon = $row["dashboard_icon"]; $dashboard_url = $row["dashboard_url"]; + $dashboard_target = $row["dashboard_target"]; + $dashboard_content = $row["dashboard_content"]; + $dashboard_content_details = $row["dashboard_content_details"]; $dashboard_chart_type = $row["dashboard_chart_type"]; $dashboard_heading_text_color = $row["dashboard_heading_text_color"]; $dashboard_heading_background_color = $row["dashboard_heading_background_color"]; @@ -387,8 +403,26 @@ } } +// adjust form by type entered + echo "\n"; + //show the content - echo "