Added registration icons in services page.
|
@ -197,6 +197,66 @@ public class Service extends PathPropertyList
|
|||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if is registration client.
|
||||
*
|
||||
* @return true, if is registration client
|
||||
*/
|
||||
public boolean isRegistrationClient()
|
||||
{
|
||||
boolean result;
|
||||
|
||||
result = StringUtils.containsIgnoreCase(get("service.registration"), "Client");
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if is registration free.
|
||||
*
|
||||
* @return true, if is registration free
|
||||
*/
|
||||
public boolean isRegistrationFree()
|
||||
{
|
||||
boolean result;
|
||||
|
||||
result = StringUtils.containsIgnoreCase(get("service.registration"), "Free");
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if is registration member.
|
||||
*
|
||||
* @return true, if is registration member
|
||||
*/
|
||||
public boolean isRegistrationMember()
|
||||
{
|
||||
boolean result;
|
||||
|
||||
result = StringUtils.containsIgnoreCase(get("service.registration"), "Member");
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if is registration none.
|
||||
*
|
||||
* @return true, if is registration none
|
||||
*/
|
||||
public boolean isRegistrationNone()
|
||||
{
|
||||
boolean result;
|
||||
|
||||
result = StringUtils.containsIgnoreCase(get("service.registration"), "None");
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setInputFile(final File inputFile)
|
||||
{
|
||||
this.inputFile = inputFile;
|
||||
|
|
|
@ -107,18 +107,58 @@ public class Htmlizer
|
|||
// Copy commons files (index, images, favicon, css…).
|
||||
if (!new File(targetDirectory, "index.html").exists())
|
||||
{
|
||||
final String source = "/fr/devinsy/statoolinfos/htmlize/stuff/";
|
||||
|
||||
StatoolInfosUtils.copyRessource("/fr/devinsy/statoolinfos/htmlize/stuff/index.html", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource("/fr/devinsy/statoolinfos/htmlize/stuff/statoolinfos.css", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource("/fr/devinsy/statoolinfos/htmlize/stuff/Chart.bundle.min.js", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource("/fr/devinsy/statoolinfos/htmlize/stuff/sorttable.js", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource("/fr/devinsy/statoolinfos/htmlize/stuff/datatables.min.css", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource("/fr/devinsy/statoolinfos/htmlize/stuff/datatables.min.js", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource("/fr/devinsy/statoolinfos/htmlize/stuff/statoolinfos-logo.jpg", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource("/fr/devinsy/statoolinfos/htmlize/stuff/statoolinfos-logo.ico", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource("/fr/devinsy/statoolinfos/htmlize/stuff/statoolinfos-logo-name.jpg", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource("/fr/devinsy/statoolinfos/htmlize/stuff/statoolinfos-logo.jpg", new File(targetDirectory, "logo.jpg"));
|
||||
StatoolInfosUtils.copyRessource("/fr/devinsy/statoolinfos/htmlize/stuff/statoolinfos-logo.ico", new File(targetDirectory, "favicon.ico"));
|
||||
StatoolInfosUtils.copyRessource(source + "index.html", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource(source + "statoolinfos.css", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource(source + "Chart.bundle.min.js", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource(source + "sorttable.js", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource(source + "datatables.min.css", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource(source + "datatables.min.js", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource(source + "statoolinfos-logo.jpg", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource(source + "statoolinfos-logo.ico", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource(source + "statoolinfos-logo-name.jpg", targetDirectory);
|
||||
StatoolInfosUtils.copyRessource(source + "statoolinfos-logo.jpg", new File(targetDirectory, "logo.jpg"));
|
||||
StatoolInfosUtils.copyRessource(source + "statoolinfos-logo.ico", new File(targetDirectory, "favicon.ico"));
|
||||
|
||||
//
|
||||
File color = new File(targetDirectory, "circle-icons/color");
|
||||
color.mkdirs();
|
||||
File mono = new File(targetDirectory, "circle-icons/mono");
|
||||
mono.mkdirs();
|
||||
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/color/global.png", color);
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/mono/global.png", mono);
|
||||
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/color/email.png", color);
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/mono/email.png", mono);
|
||||
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/color/profile.png", color);
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/mono/profile.png", mono);
|
||||
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/color/money.png", color);
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/mono/money.png", mono);
|
||||
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/color/creditcard.png", color);
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/mono/creditcard.png", mono);
|
||||
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/color/mail.png", color);
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/mono/mail.png", mono);
|
||||
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/color/ribbon.png", color);
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/mono/ribbon.png", mono);
|
||||
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/color/booklet.png", color);
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/mono/booklet.png", mono);
|
||||
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/color/bookshelf.png", color);
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/mono/bookshelf.png", mono);
|
||||
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/color/toolbox.png", color);
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/mono/toolbox.png", mono);
|
||||
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/color/tools.png", color);
|
||||
StatoolInfosUtils.copyRessource(source + "circle-icons/mono/tools.png", mono);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ import fr.devinsy.statoolinfos.core.Service;
|
|||
import fr.devinsy.statoolinfos.core.Services;
|
||||
import fr.devinsy.statoolinfos.core.StatoolInfosException;
|
||||
import fr.devinsy.xidyn.XidynException;
|
||||
import fr.devinsy.xidyn.data.DisplayMode;
|
||||
import fr.devinsy.xidyn.data.TagDataManager;
|
||||
import fr.devinsy.xidyn.presenters.PresenterUtils;
|
||||
|
||||
|
@ -73,6 +74,27 @@ public class ServicesPage
|
|||
data.setEscapedContent("serviceListLine", index, "serviceListLineSoftware", service.getSoftwareName());
|
||||
data.setEscapedContent("serviceListLine", index, "serviceListLineDate", service.getCrawledDate().toString());
|
||||
|
||||
if (service.isRegistrationNone())
|
||||
{
|
||||
data.setAttribute("serviceListLine", index, "serviceListLineRegistrationNoneImg", "class", "toto");
|
||||
data.getIdData("serviceListLine", index, "serviceListLineRegistrationNoneImg").getAttribute("class").setMode(DisplayMode.REPLACE);
|
||||
}
|
||||
if (service.isRegistrationFree())
|
||||
{
|
||||
data.setAttribute("serviceListLine", index, "serviceListLineRegistrationFreeImg", "class", "");
|
||||
data.getIdData("serviceListLine", index, "serviceListLineRegistrationFreeImg").getAttribute("class").setMode(DisplayMode.REPLACE);
|
||||
}
|
||||
if (service.isRegistrationMember())
|
||||
{
|
||||
data.setAttribute("serviceListLine", index, "serviceListLineRegistrationMemberImg", "class", "");
|
||||
data.getIdData("serviceListLine", index, "serviceListLineRegistrationMemberImg").getAttribute("class").setMode(DisplayMode.REPLACE);
|
||||
}
|
||||
if (service.isRegistrationClient())
|
||||
{
|
||||
data.setAttribute("serviceListLine", index, "serviceListLineRegistrationClientImg", "class", "");
|
||||
data.getIdData("serviceListLine", index, "serviceListLineRegistrationClientImg").getAttribute("class").setMode(DisplayMode.REPLACE);
|
||||
}
|
||||
|
||||
index += 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<script src="Chart.bundle.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="center_table" style="width: 900px;">
|
||||
<div class="center_table" style="width: 1000px;">
|
||||
<div class="center" >
|
||||
<h2>Tous les services</h2>
|
||||
|
||||
|
@ -21,10 +21,11 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th class="" style="width: 200px;">Nom du service</th>
|
||||
<th class="">Organisation</th>
|
||||
<th class="" style="width: 200px;">Organisation</th>
|
||||
<th class="">URL</th>
|
||||
<th class="">Logiciel</th>
|
||||
<th class="" style="width: 100px;">Utilisateurs mensuels</th>
|
||||
<th class="" style="width: 25px;" colspan="4">Registration</th>
|
||||
<th class="" style="width: 100px;">Date</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -45,6 +46,18 @@
|
|||
<td id="serviceListLineWebsite"><a href="#" id="serviceListLineWebsiteLink">n/a</a></td>
|
||||
<td id="serviceListLineSoftware">n/a</td>
|
||||
<td id="serviceListLineUserCount" class="td_number">n/a</td>
|
||||
<td id="serviceListLineRegistrationNone" class="td_center" style="padding-top: 0; padding-bottom: 0;">
|
||||
<img id="serviceListLineRegistrationNoneImg" src="circle-icons/mono/global.png" class="disabled" style="width: 25px; height: 25px; padding-top:0; padding-bottom: 0; vertical-align: middle;" title="Sans compte"/>
|
||||
</td>
|
||||
<td id="serviceListLineRegistrationFree" class="td_center" style="padding-top: 0; padding-bottom: 0;">
|
||||
<img id="serviceListLineRegistrationFreeImg" src="circle-icons/mono/profile.png" class="disabled" style="width: 25px; height: 25px; padding-top:0; padding-bottom: 0; vertical-align: middle;" title="Compte libre"/>
|
||||
</td>
|
||||
<td id="serviceListLineRegistrationMember" class="td_center" style="padding-top: 0; padding-bottom: 0;">
|
||||
<img id="serviceListLineRegistrationMemberImg" src="circle-icons/mono/money.png" class="disabled" style="width: 25px; height: 25px; padding-top:0; padding-bottom: 0; vertical-align: middle;" title="Réservé aux adhérents"/>
|
||||
</td>
|
||||
<td id="serviceListLineRegistrationClient" class="td_center" style="padding-top: 0; padding-bottom: 0;">
|
||||
<img id="serviceListLineRegistrationClientImg" src="circle-icons/mono/creditcard.png" class="disabled" style="width: 25px; height: 25px; padding-top:0; padding-bottom: 0; vertical-align: middle;" title="Réservé aux clients"/>
|
||||
</td>
|
||||
<td id="serviceListLineDate" class="center">n/a</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
After Width: | Height: | Size: 2 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 3 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 3.1 KiB |
|
@ -0,0 +1,3 @@
|
|||
https://www.elegantthemes.com/blog/freebie-of-the-week/beautiful-flat-icons-for-free
|
||||
|
||||
We’ve designed a 192 piece set of flat icons, and they are all yours, for free! The icons come in two versions: full color and single color, for a total of 384 variations. This download includes .ai, .eps, .pdf, and .png (64px and 128px). Below is the full set in both styles. These icons are completely free and Open Source under the GPL, so feel free to use them in your personal and commercial projects alike. We are on a mission to create the best collection of Open Source graphics on the web, so that the WordPress ecosystem can use and enjoy them alongside the freedoms they have become accustomed to. Stay tuned for more great stuff!
|
|
@ -49,6 +49,11 @@ ul, ol
|
|||
margin-left:30px;
|
||||
}
|
||||
|
||||
img.disabled
|
||||
{
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
/***** GENERIC Titles ******/
|
||||
|
||||
h1.big
|
||||
|
|