Changeset 5879 in spip-zone


Ignore:
Timestamp:
Oct 4, 2006, 3:46:21 PM (15 years ago)
Author:
cedric@…
Message:

des petites corrections et ameliorations de l'interface

Location:
_plugins_/_test_/checklink
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_test_/checklink/exec/liens_tous.php

    r5357 r5879  
    3030                checklink_reconstruit_table();
    3131        }
     32        if (_request('update')!==NULL){
     33                checklink_reconstruit_table(false);
     34        }
    3235       
    3336        $contexte = array();
  • _plugins_/_test_/checklink/exec/table_liens.html

    r5382 r5879  
    55#SET{off,'puce-poubelle.gif'}
    66<p>
    7 [(#ENV{statut,''}|?{' ',''})<a href='[(#SELF|parametre_url{statut,''})]'>Tous les liens</a><br/>]
     7<div style='float:right'>
     8#SET{urlbase,#SELF|parametre_url{raz,''}|parametre_url{debut_liens,''}|parametre_url{update,''}}
     9[(#ENV{statut,''}|?{' ',''})<a href='[(#GET{urlbase}|parametre_url{statut,''})]'>Tous les liens</a><br/>]
    810<BOUCLE_averif(LIENS){statut=ind}></BOUCLE_averif>
    9 <img src='img_pack/[(#GET{ind})]' alt="Statut ind" /> #TOTAL_BOUCLE [(#ENV{statut,''}|=={ind}|?{'',' '})<a href='[(#SELF|parametre_url{statut,ind})]'>]liens a verifier[(#ENV{statut,''}|=={ind}|?{'',' '})</a>]<br/>
     11<img src='#EVAL{_DIR_IMG_PACK}[(#GET{ind})]' alt="Statut ind" /> #TOTAL_BOUCLE [(#ENV{statut,''}|=={ind}|?{'',' '})<a href='[(#GET{urlbase}|parametre_url{statut,ind})]'>]liens a verifier[(#ENV{statut,''}|=={ind}|?{'',' '})</a>]<br/>
    1012<//B_averif>
    1113<BOUCLE_ok(LIENS){statut=oui}></BOUCLE_ok>
    12 <img src='img_pack/[(#GET{oui})]' alt="Statut oui" /> #TOTAL_BOUCLE [(#ENV{statut,''}|=={oui}|?{'',' '})<a href='[(#SELF|parametre_url{statut,oui})]'>]liens corrects[(#ENV{statut,''}|=={oui}|?{'',' '})</a>]<br/>
     14<img src='#EVAL{_DIR_IMG_PACK}[(#GET{oui})]' alt="Statut oui" /> #TOTAL_BOUCLE [(#ENV{statut,''}|=={oui}|?{'',' '})<a href='[(#GET{urlbase}|parametre_url{statut,oui})]'>]liens corrects[(#ENV{statut,''}|=={oui}|?{'',' '})</a>]<br/>
    1315<//B_ok>
    1416<BOUCLE_sus(LIENS){statut=sus}></BOUCLE_sus>
    15 <img src='img_pack/[(#GET{sus})]' alt="Statut sus" /> #TOTAL_BOUCLE [(#ENV{statut,''}|=={sus}|?{'',' '})<a href='[(#SELF|parametre_url{statut,sus})]'>]liens suspendus[(#ENV{statut,''}|=={sus}|?{'',' '})</a>]<br/>
     17<img src='#EVAL{_DIR_IMG_PACK}[(#GET{sus})]' alt="Statut sus" /> #TOTAL_BOUCLE [(#ENV{statut,''}|=={sus}|?{'',' '})<a href='[(#GET{urlbase}|parametre_url{statut,sus})]'>]liens suspendus[(#ENV{statut,''}|=={sus}|?{'',' '})</a>]<br/>
    1618<//B_sus>
    1719<BOUCLE_off(LIENS){statut=off}></BOUCLE_off>
    18 <img src='img_pack/[(#GET{off})]' alt="Statut off" /> #TOTAL_BOUCLE [(#ENV{statut,''}|=={off}|?{'',' '})<a href='[(#SELF|parametre_url{statut,off})]'>]liens invalides[(#ENV{statut,''}|=={off}|?{'',' '})</a>]<br/>
     20<img src='#EVAL{_DIR_IMG_PACK}[(#GET{off})]' alt="Statut off" /> #TOTAL_BOUCLE [(#ENV{statut,''}|=={off}|?{'',' '})<a href='[(#GET{urlbase}|parametre_url{statut,off})]'>]liens invalides[(#ENV{statut,''}|=={off}|?{'',' '})</a>]<br/>
    1921<//B_off>
     22</div>
     23<a href='[(#GET{urlbase}|parametre_url{update,'oui'}|parametre_url{statut,''})]'>Forcer une mise &agrave; jour</a><br/>
    2024</p>
    2125<B_liens>
    22 <div class='liste'><div style='position: relative;'><div style='position: absolute; top: -12px; left: 3px;'><img src='#EVAL{_DIR_PLUGIN_CHECKLINK}/img_pack/checklink-24.png'
     26<div class='liste' style='clear:both;'><div style='position: relative;'><div style='position: absolute; top: -12px; left: 3px;'><img src='#EVAL{_DIR_PLUGIN_CHECKLINK}/img_pack/checklink-24.png'
    2327alt="checklink-24"  /></div><div style='background-color: #C5E41C; color: black; padding: 3px; padding-left: 30px; border-bottom: 1px solid #444444;' class='verdana2'><b>Les sites r&eacute;f&eacute;renc&eacute;s</b></div></div><table width='100%' cellpadding='2' cellspacing='0' border='0'>
    2428<tr style='background-color: #dddddd;'>
     
    2933<BOUCLE_liens(LIENS){statut?}{pagination 20}>
    3034<tr class='tr_liste'>
    31 <td class="arial11"><img src='img_pack/[(#GET{#STATUT})]' alt="Statut #STATUT" /></td>
     35<td class="arial11"><img src='#EVAL{_DIR_IMG_PACK}[(#GET{#STATUT})]' alt="Statut #STATUT" /></td>
    3236<td class="arial11">[<a href='(#ID_TABLE|url_visu_objet{#ID_OBJET})'>][(#URL|lignes_longues{60})][</a>(#ID_TABLE|url_visu_objet{#ID_OBJET}|?{' '})]</td>
    3337<td class="arial11">[(#LANG*)]</td>
    3438<td class="arial11">[<a href='#URL' title="[(#TITRE|texte_backend)]"><:lien_visite_site:></a>]</td>
    35 <td class="arial11">[<a href='[(#SELF|parametre_url{verifier,#ID_LIEN})]' title="[(#TITRE|texte_backend)]"><:lien_mise_a_jour_syndication:></a>]</td>
     39<td class="arial11">[<a href='[(#GET{urlbase}|parametre_url{verifier,#ID_LIEN})]' title="[(#TITRE|texte_backend)]"><:lien_mise_a_jour_syndication:></a>]</td>
    3640</tr>
    3741</BOUCLE_liens>
  • _plugins_/_test_/checklink/inc/checklink.php

    r5419 r5879  
    149149
    150150// vider et reconstruire toute la table a partir des contenus
    151 function checklink_reconstruit_table(){
     151function checklink_reconstruit_table($erase=true){
    152152        global $INDEX_elements_objet;
    153153        $agregation_defaut = array(
     
    162162       
    163163        // vider la table spip_liens
    164         spip_query("DELETE FROM spip_liens");
     164        if ($erase)
     165                spip_query("DELETE FROM spip_liens");
    165166       
    166167        // parcourir les tables et les champs
Note: See TracChangeset for help on using the changeset viewer.