<%@ Page Language="C#" Buffer="true" CodeFile="albumDialog.aspx.cs" Inherits="_albumDialog" CodePage="65001" UICulture="fr" Culture="fr-FR" ValidateRequest="true" %> <%@ Import Namespace="ItlRuntime" %> <%@ Import Namespace="System.Collections.Generic" %> <%@ Import Namespace="System.Linq" %> <% EC.linkableClassMap = (Map) EC.newMap(new Map() , "ocsNewsEvent:news", new ClassLink("./page00013329.aspx?card=object", "linkTable.aspx?GID=00013329&card=object", "Actualité")); %> " /> Album <% string kwds = (string) ((string)EC.itl.getParameterValue("string", "kwds", "")); bool? resource = (bool?) ((bool?)EC.itl.getParameterValue("boolean", "resource")); int? oid = (int?) ((int?)EC.itl.getParameterValue("integer", "oid")); string fulltext = (string) ((string)EC.itl.getParameterValue("string", "fulltext", "")); %>
<%ItlForm form0 = new ItlForm("form0", EC.itl.getId(), "./albumDialog.aspx", "G00010002_1"); form0.setProperty("name", "search"); form0.setProperty("enctype", "multipart/form-data"); form0.setProperty("hasProcessing", false); form0.show(); %>/>
<%EC.itl.pushTab();%><%EC.itl.resetCurrentTab();%>
<%EC.itl.generateCurrentTabAnchor();%>

Nouveau

<%EC.itl.nextTab();%>
<%EC.itl.generateCurrentTabAnchor();%>

Recherche

<% ItlLink link2 = new ItlLink("#"); link2.setProperty("renderstyle", "admButton"); link2.setProperty("onclick", "themeTree.filter(); return false;"); link2.setProperty("title", "Rechercher les documents"); link2.show(); %> Rechercher <% link2.close(); %>


<%OdfControl input3 = OdfControlFactory.create("generic", "c_fulltext", "fulltext", null); input3.setForm(form0); input3.setProperty("width", "284"); input3.setProperty("value", EC.itl.makeParameter(fulltext, "string")); input3.show(); %>

<% ItlLink link4 = new ItlLink("#"); link4.setProperty("renderstyle", "admButton"); link4.setProperty("onclick", "themeTree.filter(); return false;"); link4.setProperty("title", "Rechercher les documents"); link4.show(); %> Rechercher <% link4.close(); %>

<%EC.itl.nextTab();%>
<%EC.itl.generateCurrentTabAnchor();%>

Édition

<%EC.itl.nextTab();%>
<%EC.itl.generateCurrentTabAnchor();%>

Aide

Aide de l'album

L'album peut contenir des images et/ou des documents. Pour ajouter une ressource :

  1. Cliquez sur l'onglet Nouveau.
  2. Remplissez les différents champs du formulaire.
  3. Cliquez sur Ajouter à l'album.
    La ressource apparaît dans la visionneuse.

Pour rechercher une ressource :

  1. Cliquez sur l'onglet Recherche.
  2. Saisissez du texte et/ou cochez l’un des mots-clés dans l’arborescence que vous pouvez agrandir ou réduire en cliquant sur les boutons + ou -.
  3. Cliquez sur Rechercher.
    Le résultat de la recherche apparaît dans la visionneuse.
    Remarque : pour annuler la recherche, vider le champ de recherche et/ou les mots-clés avant de la relancer.

Pour éditer une ressource :

  1. Cliquez sur l'onglet Édition ou cliquez une seule fois sur la ressource directement dans la visionneuse.
  2. Modifiez les différents champs du formulaire.
  3. Cliquez sur Modifier.
    La ressource est modifiée dans l’album.
    Note : vous pouvez cliquer directement sur Sélectionner si vous souhaitez valider les modifications et sélectionner la ressource en même temps.

Pour sélectionner une ressource, vous avez deux possibilités :

  • Soit vous double-cliquez sur la ressource dans la visionneuse.
  • Soit vous cliquez sur la ressource et après vérification des informations de l’image dans l’onglet Edition, vous cliquez sur Sélectionner.
    Note : vous pouvez modifier les informations avant de les sélectionner.
<%EC.itl.nextTab();EC.itl.popTab();%>
<% int? sdsLimit = (int?) ((int?)EC.itl.getParameterValue("integer", "sdsLimit", 36)); %>
<% ItlEnumerator e9 = new ItlEnumerator("G00010002_8", null, false); e9.add(new SqlEnumerator(new ItlRuntime.SQL.Collection("alb:resource", @"SELECT this_k_1.result1 AS this_k_1_1, this_c_alb_image.`_oid` AS this_c_alb_image, this.`_oid` AS this, this.filename AS o_1, this.filename AS o_2, this.extension AS o_3, this.label_fr AS o_4, this_c_alb_image.width AS o_5, this_c_alb_image.height AS o_6, this.filesize AS o_7 FROM alb_resource AS this LEFT JOIN (SELECT c0.`_oid` AS origin, MAX(this.`_oid`) AS result1 FROM kwd_keyword AS this INNER JOIN (alb_resource AS c0 INNER JOIN alb_resource_keywords AS c0_l On ((c0.`_oid` = c0_l.`_from`) AND (c0.iso_sid <> ''))) On ((this.`_oid` = c0_l.`_to`) AND (c0_l.iso_sid <> '')) WHERE (this.iso_sid <> '') AND (this.`_oid` IN (#V_4&;)) GROUP BY c0.`_oid`) AS this_k_1 On (this.`_oid` = this_k_1.origin) LEFT JOIN (alb_image AS this_c_alb_image INNER JOIN alb_resource AS this_c_alb_image_z On ((this_c_alb_image.`_oid` = this_c_alb_image_z.`_oid`) AND (this_c_alb_image_z.iso_sid <> ''))) On ((this.`_oid` = this_c_alb_image.`_oid`) AND (this_c_alb_image.iso_sid <> '')) WHERE (this.iso_sid <> '') AND (#V_0&; OR (this_k_1.result1 IS NOT NULL )) AND (#V_1&; OR ((this.label_fr LIKE CONCAT('%', #V_2&;, '%')) OR ((this.filename LIKE CONCAT('%', #V_2&;, '%')) OR (this.description_fr LIKE CONCAT('%', #V_2&;, '%'))))) AND (#V_3&; OR (this_c_alb_image.`_oid` IS NOT NULL ))", new ItlRuntime.SQL.Parameters( new ItlRuntime.SQL.Parameter("#V_0&;", !ITL.b(kwds), "boolean"), new ItlRuntime.SQL.Parameter("#V_1&;", (fulltext == ""), "boolean"), new ItlRuntime.SQL.Parameter("#V_2&;", fulltext, "string"), new ItlRuntime.SQL.Parameter("#V_3&;", (resource != false), "boolean"), new ItlRuntime.SQL.Parameter("#V_4&;", ITL.S(kwds), "oids")), new ItlRuntime.SQL.OrderAliases(new ItlRuntime.SQL.OrderAlias("o_1", true)), new ItlRuntime.SQL.OptionalOrderAliases(new ItlRuntime.SQL.OrderAliases(new ItlRuntime.SQL.OrderAlias("o_2", true)), new ItlRuntime.SQL.OrderAliases(new ItlRuntime.SQL.OrderAlias("o_3", true)), new ItlRuntime.SQL.OrderAliases(new ItlRuntime.SQL.OrderAlias("o_4", true)), new ItlRuntime.SQL.OrderAliases(new ItlRuntime.SQL.OrderAlias("o_5", true)), new ItlRuntime.SQL.OrderAliases(new ItlRuntime.SQL.OrderAlias("o_6", true)), new ItlRuntime.SQL.OrderAliases(new ItlRuntime.SQL.OrderAlias("o_7", true))), null, null), @"SELECT this.`_oid` AS this, this_c_alb_image.`_oid` AS this_c_alb_image, this.urlDir AS this_p_urlDir, this.filename AS this_p_filename, this.extension AS this_p_extension, this.filesize AS this_p_filesize, this.label_fr AS this_p_label_fr, this.description_fr AS this_p_description_fr, this_c_alb_image.width AS this_c_alb_image_p_width, this_c_alb_image.height AS this_c_alb_image_p_height, this_c_alb_image.frames AS this_c_alb_image_p_frames FROM alb_resource AS this LEFT JOIN (alb_image AS this_c_alb_image INNER JOIN alb_resource AS this_c_alb_image_z On ((this_c_alb_image.`_oid` = this_c_alb_image_z.`_oid`) AND (this_c_alb_image_z.iso_sid <> ''))) On ((this.`_oid` = this_c_alb_image.`_oid`) AND (this_c_alb_image.iso_sid <> '')) WHERE (this.iso_sid <> '')", new Map(), true, (List) EC.newList(new List(), 1, 1, 1, 1, 1, 1), (int?)null, (int?)null)); e9.setLimit(sdsLimit); e9.setLimits("9 36 72 144"); e9.setNavigationFeatures("firstPage previousPage lastPage nextPage allPages"); ItlEnumerator res = (ItlEnumerator) (e9); res.reset(); if(res.isNotEmpty()) { ItlEnumerator tableEnumerator = (ItlEnumerator) (res); %>

Pour une sélection rapide, double-cliquez sur l'image ou le document dans la visionneuse.

<% columnCount = (int?)(ITL.gv["columnCount"] = 0);%><% columnCount = (int?)(ITL.gv["columnCount"] = 1); %><% columnCount = (int?)(ITL.gv["columnCount"] = 2); %><% columnCount = (int?)(ITL.gv["columnCount"] = 3); %><% columnCount = (int?)(ITL.gv["columnCount"] = 4); %><% columnCount = (int?)(ITL.gv["columnCount"] = 5); %><% columnCount = (int?)(ITL.gv["columnCount"] = 6); %><% %><% %><% %><% %><% %><% %><% %><% %><% if(tableEnumerator.getCurrentMode() == 0) { res.resetGroup(); for(res.start();res.test();res.fetch()) { string oddEven = (string) (tableEnumerator.positionInPage() % 2 == 1?"odd":"even"); %>><% %><% %><% %><% %><% %><% %><% } } modeCount = (int?)(ITL.gv["modeCount"] = 1);%>
<% alt = (string)(ITL.gv["alt"] = (ITL.S((string)res.get("this_p_description_fr")) + "\n") + ITL.S(new SqlCollection("kwd:keyword", @"SELECT DISTINCT c0.`_oid` AS origin, this.label AS this_p_label, this.`_oid` AS this FROM kwd_keyword AS this INNER JOIN (alb_resource AS c0 INNER JOIN alb_resource_keywords AS c0_l On ((c0.`_oid` = c0_l.`_from`) AND (c0.iso_sid <> '') AND (c0.`_oid` = #V_0&;))) On ((this.`_oid` = c0_l.`_to`) AND (c0_l.iso_sid <> '')) WHERE (this.iso_sid <> '')", new Map("#V_0&;|integer", (int?)res.get("this")), (List) EC.newList(new List(), "this_p_label")).labels()));%> Fichier <% if(tableEnumerator.count() > 1) { %>v^<% } %>Ext.<% if(tableEnumerator.count() > 1) { %>v^<% } %>Titre<% if(tableEnumerator.count() > 1) { %>v^<% } %>L.<% if(tableEnumerator.count() > 1) { %>v^<% } %>H.<% if(tableEnumerator.count() > 1) { %>v^<% } %>Ko<% if(tableEnumerator.count() > 1) { %>v^<% } %>
    > href="#" class="sdsTableRowModeButton">Détails<% modeCount = (int?)(ITL.gv["modeCount"] = 1);%>> href="#" class="sdsTableSmallBlockModeButton">Petites vignettes<% modeCount = (int?)(ITL.gv["modeCount"] = 2);%>> href="#" class="sdsTableBigBlockModeButton">Grandes vignettes<% modeCount = (int?)(ITL.gv["modeCount"] = 3);%>
<% if(tableEnumerator.needNavigationBar()) { %>  - <% ITL.show(tableEnumerator.navigationBar(), "string", "raw", "string"); } %>
  <% ITL.show(tableEnumerator.limitSelect(), "string", "raw", "string"); %>
<% if(tableEnumerator.needNavigationBar()) { %>  - <% ITL.show(tableEnumerator.navigationBar(), "string", "raw", "string"); } %>
  <% ITL.show(tableEnumerator.limitSelect(), "string", "raw", "string"); %>
><% ItlLink link41 = new ItlLink("./albumEdit.aspx"); link41.setProperty("title", "Modifier"); link41.setProperty("target", "editor"); link41.setParameter("resource", (int?)res.get("this")); link41.show(); ITL.show((string)res.get("this_p_filename"), "string", "html", "string"); link41.close(); %>><% ItlLink link42 = new ItlLink("./albumEdit.aspx"); link42.setProperty("title", "Modifier"); link42.setProperty("target", "editor"); link42.setParameter("resource", (int?)res.get("this")); link42.show(); ITL.show((string)res.get("this_p_extension"), "string", "html", "string"); link42.close(); %>><% ItlLink link43 = new ItlLink("./albumEdit.aspx"); link43.setProperty("title", "Modifier"); link43.setProperty("target", "editor"); link43.setParameter("resource", (int?)res.get("this")); link43.show(); ITL.show((string)res.get("this_p_label_fr"), "string", "html", "string"); link43.close(); %>><% ItlLink link44 = new ItlLink("./albumEdit.aspx"); link44.setProperty("title", "Modifier"); link44.setProperty("target", "editor"); link44.setParameter("resource", (int?)res.get("this")); link44.show(); ITL.show((int?)res.get("this_c_alb_image_p_width"), "string", "html", "integer"); link44.close(); %>><% ItlLink link45 = new ItlLink("./albumEdit.aspx"); link45.setProperty("title", "Modifier"); link45.setProperty("target", "editor"); link45.setParameter("resource", (int?)res.get("this")); link45.show(); ITL.show((int?)res.get("this_c_alb_image_p_height"), "string", "html", "integer"); link45.close(); %>><% ItlLink link46 = new ItlLink("./albumEdit.aspx"); link46.setProperty("title", "Modifier"); link46.setProperty("target", "editor"); link46.setParameter("resource", (int?)res.get("this")); link46.show(); ITL.show((int?)res.get("this_p_filesize"), "ko", "html", "integer"); link46.close(); %>
<% res.resetGroup(); for(res.start();res.test();res.fetch()) { if(tableEnumerator.getCurrentMode() == 1) { %> style="width:72px;height:72px"> class="textaligncenter"><% string title = (string) (EC.itl.trim(EC.itl.stringReplace(((((((((((ITL.S((string)res.get("this_p_filename")) + ITL.S((string)res.get("this_p_extension"))) + "\n") + (ITL.isNotNull((int?)res.get("this_c_alb_image"))?((ITL.S((int?)res.get("this_c_alb_image_p_width")) + " x ") + ITL.S((int?)res.get("this_c_alb_image_p_height"))) + " - ":"")) + ITL.S(EC.itl.format((int?)res.get("this_p_filesize"), "ko", null, "integer"))) + "\n\n") + ITL.S((string)res.get("this_p_label_fr"))) + "\n") + ITL.S((string)res.get("this_p_description_fr"))) + "\n\n") + ITL.S(new SqlCollection("kwd:keyword", @"SELECT DISTINCT c0.`_oid` AS origin, this.label AS this_p_label, this.`_oid` AS this FROM kwd_keyword AS this INNER JOIN (alb_resource AS c0 INNER JOIN alb_resource_keywords AS c0_l On ((c0.`_oid` = c0_l.`_from`) AND (c0.iso_sid <> '') AND (c0.`_oid` = #V_0&;))) On ((this.`_oid` = c0_l.`_to`) AND (c0_l.iso_sid <> '')) WHERE (this.iso_sid <> '')", new Map("#V_0&;|integer", (int?)res.get("this")), (List) EC.newList(new List(), "this_p_label")).labels())), "\n\n", "\n"))); ItlLink link52 = new ItlLink("./albumEdit.aspx"); link52.setProperty("title", "Modifier"); link52.setProperty("target", "editor"); link52.setParameter("resource", (int?)res.get("this")); link52.show(); if(ITL.isNotNull((int?)res.get("this_c_alb_image"))) { ItlImage image53 = new ItlImage("alb:image", res.getObject("this_c_alb_image", "alb:image"), (int?)res.get("this_c_alb_image_p_width"), (int?)res.get("this_c_alb_image_p_height"), (int?)res.get("this_c_alb_image_p_frames")); image53.setProperty("maxWidth", 60); image53.setProperty("maxHeight", 60); image53.setProperty("title", title); image53.setProperty("align", "baseline"); image53.show(); } else {%>/>
style="font-size:9px;font-family:Arial;width:72px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;float:left;"><% ITL.show(ITL.S((string)res.get("this_p_filename")) + ITL.S((string)res.get("this_p_extension")), "string", "html", "string"); %><% } link52.close(); %>

<% } modeCount = (int?)(ITL.gv["modeCount"] = 2); if(tableEnumerator.getCurrentMode() == 2) { %> style="width:150px;height:170px"> class="textaligncenter"><% string title__1 = (string) (EC.itl.trim(EC.itl.stringReplace(((((((((((ITL.S((string)res.get("this_p_filename")) + ITL.S((string)res.get("this_p_extension"))) + "\n") + (ITL.isNotNull((int?)res.get("this_c_alb_image"))?((ITL.S((int?)res.get("this_c_alb_image_p_width")) + " x ") + ITL.S((int?)res.get("this_c_alb_image_p_height"))) + " - ":"")) + ITL.S(EC.itl.format((int?)res.get("this_p_filesize"), "ko", null, "integer"))) + "\n\n") + ITL.S((string)res.get("this_p_label_fr"))) + "\n") + ITL.S((string)res.get("this_p_description_fr"))) + "\n\n") + ITL.S(new SqlCollection("kwd:keyword", @"SELECT DISTINCT c0.`_oid` AS origin, this.label AS this_p_label, this.`_oid` AS this FROM kwd_keyword AS this INNER JOIN (alb_resource AS c0 INNER JOIN alb_resource_keywords AS c0_l On ((c0.`_oid` = c0_l.`_from`) AND (c0.iso_sid <> '') AND (c0.`_oid` = #V_0&;))) On ((this.`_oid` = c0_l.`_to`) AND (c0_l.iso_sid <> '')) WHERE (this.iso_sid <> '')", new Map("#V_0&;|integer", (int?)res.get("this")), (List) EC.newList(new List(), "this_p_label")).labels())), "\n\n", "\n"))); ItlLink link57 = new ItlLink("./albumEdit.aspx"); link57.setProperty("title", "Modifier"); link57.setProperty("target", "editor"); link57.setParameter("resource", (int?)res.get("this")); link57.show(); if(ITL.isNotNull((int?)res.get("this_c_alb_image"))) { ItlImage image58 = new ItlImage("alb:image", res.getObject("this_c_alb_image", "alb:image"), (int?)res.get("this_c_alb_image_p_width"), (int?)res.get("this_c_alb_image_p_height"), (int?)res.get("this_c_alb_image_p_frames")); image58.setProperty("maxWidth", 136); image58.setProperty("maxHeight", 136); image58.setProperty("title", title__1); image58.setProperty("align", "baseline"); image58.show(); } else {%><% } %>
<% ITL.show(ITL.S((string)res.get("this_p_filename")) + ITL.S((string)res.get("this_p_extension")), "string", "html", "string"); %>
<% ITL.show((string)res.get("this_p_label_fr"), "string", "html", "string"); link57.close(); %>

<% } modeCount = (int?)(ITL.gv["modeCount"] = 3); }%>
<% } else {%>

Aucune image ne correspond à votre sélection.

<% } res.finish(); %>
<%form0.close();%>
<% if(ITL.b(((ITL.b(fulltext)) ? fulltext : kwds))) { %><% } %>