[zopeorg-checkins] CVS: Products/ZopeOrg-NV/skins/zwiki_dtml - backlinks.dtml:1.1 editform.dtml:1.1 subscribeform.dtml:1.1

Sidnei da Silva sidnei at x3ng.com.br
Thu Jan 9 14:13:33 EST 2003


Update of /cvs-zopeorg/Products/ZopeOrg-NV/skins/zwiki_dtml
In directory cvs.zope.org:/tmp/cvs-serv32528/zwiki_dtml

Added Files:
	backlinks.dtml editform.dtml subscribeform.dtml 
Log Message:
some dtml skins for zwiki while someone writes zpt versions

=== Added File Products/ZopeOrg-NV/skins/zwiki_dtml/backlinks.dtml ===
<dtml-var standard_html_header>
<table width="100%" border="0" cellspacing="0" cellpadding="3" 
<dtml-if "_.has_key('zwiki_displaymode') and zwiki_displaymode != 'minimal'">
bgcolor="#f0f0f0"
</dtml-if>
>
<tr>
<td valign="bottom">
<h1>
<dtml-if "REQUEST.get('zwiki_showlogo',1)">
<a href="&dtml-wiki_url;/" title="go to home page" accesskey="1"><img src="/misc_/ZWiki/ZWikiPage_icon.gif" height=32 width=32 border=0 valign="bottom" alt="to FrontPage"></a>
</dtml-if>
Backlinks for &dtml-title_or_id;
</h1>
</td>
</tr>
</table>
<p>
<!-- end of header -->


<dtml-try>
<!-- using catalog search -->

<dtml-if bruteforce>
<dtml-raise type="dontusecatalog">dontusecatalog</dtml-raise>
</dtml-if>

<dtml-let 
thisfolder=folder
thispage=title_or_id
thisparents=parents
thisid=id
thiscid=canonicalId
backlinks="
(thiscid == thisid and Catalog(canonicalLinks=thiscid)) 
or Catalog(canonicalLinks=thiscid) + Catalog(links=thisid)
">
<p>
Here are the pages which link to <a href="&dtml-page_url;" title="&dtml-linkTitle;"><dtml-var thispage></a>:
<dtml-if zwiki_showhierarchy>
<p>
<form action="reparent">
You can also set this page's <em>parent(s)</em>, to locate it within the
contents hierarchy.  Check the boxes or enter a new page name and click
Reparent.  A single parent is usually sufficient.
</dtml-if>
<p>
<ol>
<dtml-in backlinks sort=title_or_id>
<dtml-let 
blpage=title_or_id
blid=id
bllinktitle="thisfolder[blid].linkTitle()"
blisparent="REQUEST.get('zwiki_showhierarchy',0) and blpage in thisparents"
>
<li>
<dtml-if zwiki_showhierarchy>
<input type=checkbox name="parents" value="<dtml-var blpage>"
<dtml-if "blpage in thisparents">CHECKED</dtml-if>>
&nbsp;
</dtml-if>
<dtml-if blisparent><b></dtml-if>
<a href="&dtml-wiki_url;/&dtml.url_quote-blid;" title="&dtml-bllinktitle;">
<dtml-var blpage></a>
<dtml-if blisparent></b></dtml-if>
<br>
</dtml-let>
</dtml-in>
</ol>
</dtml-let>
<dtml-if zwiki_showhierarchy>
<br>
Other parent: <input type="text" name="parents">
<br><br>
<b><input type="submit" value="Reparent" style="font-weight:bold"></b>
</form>
</dtml-if>


<dtml-except>
<!-- using brute-force search -->

<dtml-let 
thisfolder=folder
thispage=title_or_id
thisparents=parents
thisid=id
>
<p>
Here are the pages which link to <a href="&dtml-page_url;" title="&dtml-linkTitle;"><dtml-var thispage></a>:
<dtml-if zwiki_showhierarchy>
<p>
<form action="reparent">
You can also set this page's <em>parent(s)</em>, to locate it within the
contents hierarchy.  Check the boxes or enter a new page name and click
Reparent.  A single parent is usually sufficient.
</dtml-if>
<p>
<ol>
<dtml-in "aq_parent.objectValues(spec='ZWiki Page')" sort=title_or_id prefix=x>
<dtml-unless "_.string.find(x_sequence_item.raw,thispage) == -1 and
              _.string.find(x_sequence_item.raw,thisid) == -1">
<dtml-let 
blpage=title_or_id
blid=id
bllinktitle="thisfolder[blid].linkTitle()"
blisparent="REQUEST.get('zwiki_showhierarchy',0) and blpage in thisparents"
>
<li>
<dtml-if zwiki_showhierarchy>
<input type=checkbox name="parents" value="<dtml-var blpage>"
<dtml-if "blpage in thisparents">CHECKED</dtml-if>>
&nbsp;
</dtml-if>
<dtml-if blisparent><b></dtml-if>
<a href="&dtml-wiki_url;/&dtml.url_quote-blid;" title="&dtml-bllinktitle;">
<dtml-var blpage></a>
<dtml-if blisparent></b></dtml-if>
<br>
</dtml-let>
</dtml-unless>
</dtml-in>
</ol>
</dtml-let>
<dtml-if zwiki_showhierarchy>
<br>
Other parent: <input type="text" name="parents">
<br><br>
<b><input type="submit" value="Reparent" style="font-weight:bold"></b>
</form>
</dtml-if>

</dtml-try>

<dtml-var standard_html_footer>

=== Added File Products/ZopeOrg-NV/skins/zwiki_dtml/editform.dtml ===
<dtml-var standard_html_header>
<table width="100%" border="0" cellspacing="0" cellpadding="3"
<dtml-if "_.has_key('zwiki_displaymode') and zwiki_displaymode != 'minimal'">
bgcolor="#f0f0f0"
</dtml-if>
>
<tr>
<td valign="bottom">
<h1>
<dtml-if "REQUEST.get('zwiki_showlogo',1)">
<a href="&dtml-wiki_url;/" title="go to home page" accesskey="1"><img src="/misc_/ZWiki/ZWikiPage_icon.gif" height=32 width=32 border=0 valign="bottom" alt=" "></a>
</dtml-if>
<dtml-if "action == 'Create'">
Creating<dtml-else>
Editing</dtml-if> &dtml-id;
</h1>
</td>
</tr>
</table>
<p>
<!-- end of header -->

<form method="POST" action="&dtml-wiki_url;/&dtml.url_quote-oldid;/" enctype="multipart/form-data">
<input name=timeStamp type=hidden value="&dtml-editTimestamp;">
<input name=page type=hidden value="&dtml.url_quote-id;">

<!-- text area -->
<div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr><td colspan=2 align="center" bgcolor="#dddddd">
<textarea wrap="virtual" name="text" rows=<dtml-var "REQUEST.get('zwiki_height','') or 25"> cols=<dtml-var "REQUEST.get('zwiki_width','') or 60"> style="width:100%; background-color:#f0f0f0" tabindex="1">
<dtml-var text html_quote></textarea>
</td></tr>

<tr>
<td valign="middle" align="left" bgcolor="#dddddd">
&nbsp;
</td>
<td valign="top" align="right" bgcolor="#dddddd">
<b><INPUT TYPE="submit" NAME="edit:method" VALUE=" <dtml-var action> <dtml-var id> " tabindex="2" style="font-weight:bold" accesskey="s"></b>
</td>
</tr>

<tr>
<td valign="middle" align="left" bgcolor="#dddddd">
Optional note: 
<input name="log" size="50" maxlength="100" value="" tabindex="3">
</td>
<td bgcolor="#dddddd">
&nbsp;
</td>
</tr>

<dtml-let uploaddir="_.getattr(this(),'uploads',this())">
<dtml-if "AUTHENTICATED_USER.has_permission('Add Documents, Images, and Files',
                                            uploaddir)">
<tr>
<td valign="middle" align="left" colspan=2 bgcolor="#dddddd">
Upload a file or image: 
<INPUT TYPE="file" NAME="file" SIZE="30" VALUE="" tabindex="4"><dtml-comment> style="background-color:#f0f0f0"></dtml-comment>
</td>
</tr>
</dtml-if>
</dtml-let>

<dtml-if "AUTHENTICATED_USER.has_permission('Zwiki: Change page types',this())">
<tr>
<td valign="middle" align="left" colspan=2 bgcolor="#dddddd">
Render this page as:
<SELECT NAME="type" tabindex="5">
<dtml-if "page_type == 'issuedtml'">
<OPTION value="issuedtml" SELECTED>tracker issue</OPTION>
<dtml-else>
<dtml-let page_types="[
('stxprelinkdtmlhtml', 'Structured text + links + DTML + HTML'),
('stxprelinkhtml',     'Structured text + links + HTML'),
('stxprelink',         'Structured text + links'),
('wwmlprelink',        'WikiWikiWeb formatting + links'),
('prelinkdtmlhtml',    'links + DTML + HTML'),
('prelinkhtml',        'links + HTML'),
('dtmlhtml',           'DTML + HTML'),
('html',               'HTML'),
('textlink',           'text + links'),
('plaintext',          'plain text'),
('dtmlfithtml',        'DTML + fit tests + HTML'),
('stxdtmlfithtml',     'Structured text + DTML + fit tests + HTML'),
]
#all builtin page types:
#('stxprelinkdtmlhtml','Structured text + links + DTML + HTML (quicker)'),
#('stxdtmllinkhtml',   'Structured text + DTML + links + HTML (quick)'),
#('dtmlstxlinkhtml',   'DTML + Structured text + links + HTML'),
#('stxprelinkhtml',    'Structured text + links + HTML (quick)'),
#('stxlinkhtml',       'Structured text + links + HTML'),
#('stxprelink',	       'Structured text + links (quick)'),
#('stxlink',	       'Structured text + links'),
#('wwmlprelink',       'WikiWikiWeb formatting + links (quick)'),
#('wwmllink',	       'WikiWikiWeb formatting + links'),
#('prelinkdtmlhtml',   'links + DTML + HTML (quick)'),
#('dtmllinkhtml',      'DTML + links + HTML'),
#('prelinkhtml',       'links + HTML (quick)'),
#('linkhtml',	       'links + HTML'),
#('dtmlhtml',	       'DTML + HTML'),
#('html',	       'HTML'),
#('plaintext',	       'plain text'),
">
<dtml-in page_types prefix=x>
<OPTION value="&dtml-x_sequence_key;"
<dtml-if "page_type == x_sequence_key">SELECTED</dtml-if>>
&dtml-x_sequence_item;
</OPTION>
</dtml-in>
</dtml-let>
</dtml-if>
</SELECT>
</td>
</tr>
</dtml-if>

<dtml-if usingRegulations>
<dtml-let creating="_.has_key('action') and action == 'Create'"
          regulator="isRegSetter(REQUEST, new=creating)"
          whichwho="{'nonanon': 'You must be logged-in to',
                     'owners': 'Only the owners may',
                     'nobody': 'Nobody may'}">
<dtml-if "regulator"> 
  <input type="hidden" name="regulate" value="1">
</dtml-if>
<tr>
<td colspan=2 bgcolor="#dddddd">
<dtml-comment>
<table border=0>
  <tr>
    <th align="left" bgcolor="ffffcc">
      <em> <dtml-var id size=40> </em> Attributes
    </th>
  </tr>
  <tr>
    <td colspan=2>
      <table width="100%">
        <tr>
          <th> Name: </th>
          <td> <dtml-var id size=45> </td>
         <dtml-let owners="this().page_owners()"
                   plural="((_.len(owners) > 1) and 's' or '')"
               niceowners="((owners and _.string.join(owners, ', '))
                            or 'Anonymous User')">
           <th> Local Owner&dtml-plural;: </th>
           <td> &dtml-niceowners; </td>
         </dtml-let>
        </tr>
        <tr>
          <th> Type: </th>
          <td> &dtml-page_type; </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <th align="left" bgcolor="ffffcc">
      <em> <dtml-var id size=40> </em> Rename and Delete
    </th>
  </tr>
  <tr>
    <td>
     <dtml-if "(id == 'FrontPage')">
       <font color="gray"> No Delete or Rename forms for FrontPage - it
                           can not be removed.
       </font>
     <dtml-elif "not isAllowed('move', REQUEST=REQUEST)">
        You can not rename or delete this page.
        <dtml-var "whichwho[opCategory('move')]"> do so.
     <dtml-else>
      <table width="100%" cellspacing=7>
        <tr>
          <td width="50%" nowrap bgcolor="eeeeee">
            Rename <strong><dtml-var id></strong> to:
            <br>
              <INPUT TYPE="TEXT" NAME="new_id" SIZE="25" value="<dtml-var id>">
              &nbsp; <input type="SUBMIT" NAME="Rename" VALUE="Rename">
          </td>
          <td align="center" width="50%" nowrap bgcolor="eeeeee">
            <input type="hidden" name="confirm-delete:default" value="off">
            <input type="checkbox" name="confirm-delete" value="ON">
              Confirm delete &nbsp;
            <input type="SUBMIT" name="Delete" VALUE="Delete">
          </td>
        </tr>
      </table>
     </dtml-if>
    </td>
  </tr>

  <tr>
    <th align="left" bgcolor="ffffcc">
      <em> <dtml-var id size=40> </em> Regulations
    </th>
  </tr>

  <tr>
    <td>
  This is where wiki page and folder owners choose who can do which of
  the common wiki operations on the page.  The operations include
  editing the page, creating new pages from it, commenting on it, and
  resituating it (renaming it, deleting, or changing its designated
  parents).   You can <dtml-if regulator> set <dtml-else> see </dtml-if>
  the page regulations below.

  <p>
  <strong> See <a href="&dtml-wiki_base_url;/RegulatingYourPages">
  RegulatingYourPages</a> for more info.</strong.>
  </p>
</dtml-comment>

    <table width="100%" border="0" cellspacing="0" cellpadding="1" >
      <tr>
        <td colspan=5><hr>
        </td>
      </tr>
      <tr>
        <td> Regulations: </td>
       <dtml-in regOps>
        <td align="center"> <dtml-var sequence-item capitalize> </td>
       </dtml-in>
      </tr>

      <tr>
        <td rowspan=2 align="right" valign="bottom">
            Role categories:
        </td>
       <dtml-in regOps>
        <td align="center" valign="top">
         <dtml-if "_['sequence-item'] == 'create'">
           <font size="-1"> ... new pages from this one. </font>
         <dtml-elif "_['sequence-item'] == 'edit'">
           <font size="-1"> Change the text. </font>
         <dtml-elif "_['sequence-item'] == 'comment'">
           <font size="-1"> Append text to end. </font>
         <dtml-elif "_['sequence-item'] == 'move'">
           <font size="-1"> Rename, delete, reparent. </font>
         </dtml-if>
        </td>
       </dtml-in>
      </tr>
      <tr>
       <dtml-in regOps>
        <dtml-let op="_['sequence-item']"
               opcat="opCategory(op)">
        <td align="center" valign="middle">
          <select name="&dtml-op;-category:string" size="1"
             <dtml-if "not creating and not regulator"> DISABLED </dtml-if> >
          <dtml-in regCategories>
           <dtml-let cat="_['sequence-item']"
                     cur="opcat == cat">
            <option value="&dtml-cat;"
                    <dtml-if cur>SELECTED</dtml-if>>
              <dtml-if "cat == 'nonanon'"> Non-Anon
              <dtml-else>&dtml.capitalize-cat;</dtml-if></option>
           </dtml-let>
          </dtml-in>
          </select>
        </td>
        </dtml-let>
       </dtml-in>
      </tr>

      <tr>
        <td align="right" valign="middle">
          Additional allowed users:
        </td>
       <dtml-in regOps>
        <dtml-let op="_['sequence-item']"
           usernames="_.string.join(opUsernames(op), '\n')">
        <td align="center">
          <textarea rows=2 cols=8
                    name="&dtml-op;-usernames:lines"
               <dtml-if "not regulator">
                 readonly
                 onkeydown="this.blur(); return false;"
               </dtml-if>
            >&dtml-usernames;</textarea>
        </td>
        </dtml-let>
       </dtml-in>
      </tr>
      <tr>
        <td align="right" valign="middle">
          Propagate to offspring:
        </td>
       <dtml-in regOps>
        <dtml-let propop="'propagate-' + _['sequence-item']">
        <td align="center">
            <input type="hidden" name="&dtml-propop;:default" value="off">
            <input type="checkbox" name="&dtml-propop;" value="ON"
               <dtml-if "not regulator">
                 readonly
                 onkeydown="this.blur(); return false;"
               </dtml-if> >
        </td>
        </dtml-let>
       </dtml-in>
      </tr>
      <tr>
        <td align="right" valign="middle">
          Who owns pages created <br>
          from this one:
        </td>
        <td colspan=4>
          <input type="radio" name="who_owns_subs" value="creator"
                 <dtml-if "not regulator"> DISABLED </dtml-if>
                 <dtml-if "subOwner()=='creator'"> CHECKED </dtml-if>>
              Only creator of new page
          <br>
          <input type="radio" name="who_owns_subs" value="original_owner"
                 <dtml-if "not regulator"> DISABLED </dtml-if>
                 <dtml-if "subOwner()=='original_owner'">CHECKED</dtml-if>>
              Only original page owner(s)
          <br>
          <input type="radio" name="who_owns_subs" value="both"
                 <dtml-if "not regulator"> DISABLED </dtml-if>
                 <dtml-if "subOwner()=='both'">CHECKED</dtml-if>>
              Both original page owner(s) and sub-page creators
        </td>
      </tr>
    </table>

<dtml-comment>
  </td></tr>
  </table>
</dtml-comment>
</td>
</tr>
</dtml-let>
</dtml-if>

</table>

<!-- help links -->
<br>
<small><em><span style="color:gray">
See <a href="&dtml-wiki_base_url;/HelpPage#editing">HelpPage</a> for help
</span></em></small>
</div>

</form>

<dtml-var standard_html_footer>

=== Added File Products/ZopeOrg-NV/skins/zwiki_dtml/subscribeform.dtml ===
<dtml-var standard_html_header>
<table width="100%" border="0" cellspacing="0" cellpadding="3"
<dtml-if "_.has_key('zwiki_displaymode') and zwiki_displaymode != 'minimal'">
bgcolor="#f0f0f0"
</dtml-if>
>
<tr>
<td valign="bottom">
<h1>
<dtml-if "REQUEST.get('zwiki_showlogo',1)">
<a href="&dtml-wiki_url;/" title="go to home page" accesskey="1"><img src="/misc_/ZWiki/ZWikiPage_icon.gif" height=32 width=32 border=0 valign="bottom" alt="home"></a>
</dtml-if>
Mail subscription
</h1>
</td>
</tr>
</table>
<p>
<!-- end of header -->

<!-- remember email address like on UserOptions -->
<dtml-if emailchanged>
<dtml-call "RESPONSE.setCookie('email',REQUEST.email,path='/',expires=(ZopeTime() + 365).rfc822())">
</dtml-if>

<FORM METHOD="POST" ACTION="&dtml-page_url;/subscribeform" ENCTYPE="multipart/form-data">

You can subscribe to this page or to the whole wiki.
Subscribers receive a copy of comments via email
(but not general edits, unless enabled by the site admin).
Or return to <a href="&dtml-page_url;">&dtml-id;</a>.

<br><br>

Your email address:
<input name="email" type="text" value="<dtml-var email missing>" size=30>
<input name="emailchanged" type="hidden" value="1">
<INPUT TYPE="submit" NAME="../subscribeform:method" VALUE=" Change ">
<br><br>

<table width="100%" cellpadding="2" cellspacing="1" border="0">
<dtml-if email>
<tr valign="top">
<td valign="top" width="50%"
<dtml-if "isSubscriber(email)">
bgcolor="#88ff88"
<dtml-else>
bgcolor="#ff7777"
</dtml-if>
>
You are currently
<dtml-if "isSubscriber(email)">
<b>subscribed</b><br>
<dtml-else>
not subscribed<br>
</dtml-if>
to this page.
<br>
<dtml-if "isSubscriber(email)">
<INPUT TYPE="submit" NAME="../unsubscribe:method" VALUE=" Unsubscribe from &dtml-id; " style="font-weight:bold">
<dtml-else>
<INPUT TYPE="submit" NAME="../subscribe:method" VALUE=" Subscribe to &dtml-id; " style="font-weight:bold">
</dtml-if>
<br>
</td>
<td valign="top" width="50%"
<dtml-if "isWikiSubscriber(email)">
bgcolor="#88ff88"
<dtml-else>
bgcolor="#ff7777"
</dtml-if>
>
You are currently
<dtml-if "isWikiSubscriber(email)">
<b>subscribed</b><br>
<dtml-else>
not subscribed<br>
</dtml-if>
to the whole wiki.
<br>
<dtml-if "isWikiSubscriber(email)">
<INPUT TYPE="submit" NAME="../wikiUnsubscribe:method" VALUE=" Unsubscribe from the whole wiki " style="font-weight:bold">
<dtml-else>
<INPUT TYPE="submit" NAME="../wikiSubscribe:method" VALUE=" Subscribe to the whole wiki " style="font-weight:bold">
</dtml-if>
<br>
</td>
</tr>

<tr>
<td>
<dtml-in "otherPageSubscriptionsFor(email)" prefix=x>
<dtml-if sequence-start>
You are subscribed to these other pages: <br>
</dtml-if>
<a href="../&dtml.url_quote-x_sequence_item;/subscribeform?email=&dtml.url_quote-email;"
><dtml-var x_sequence_item></a>
<dtml-else>
<dtml-comment>
You have no other page subscriptions.
</dtml-comment>
</dtml-in>
</td>
<td>
</td>
</tr>
</dtml-if>

<tr>
<td valign="top" width="50%"
<br>
<dtml-var id> subscribers:
<br>
<dtml-comment>
<dtml-let n="subscriberCount()">
<dtml-if n>
<dtml-in "_.string.split(subscriberList(),' ')">
<dtml-var "_.string.split(_['sequence-item'],'@')[0]"><br>
</dtml-in>
</dtml-if>
</dtml-let>
</dtml-comment>
<dtml-in subscriberList prefix=x>
<dtml-var "_.string.split(x_sequence_item,'@')[0]"><br>
</dtml-in>
</td>
<td valign="top" width="50%"
<br>
wiki subscribers:
<br>
<dtml-comment>
<dtml-let n="wikiSubscriberCount()">
<dtml-if n>
<dtml-in "_.string.split(wikiSubscriberList(),' ')">
<dtml-var "_.string.split(_['sequence-item'],'@')[0]"><br>
</dtml-in>
</dtml-if>
</dtml-let>
</dtml-comment>
<dtml-in wikiSubscriberList prefix=x>
<dtml-var "_.string.split(x_sequence_item,'@')[0]"><br>
</dtml-in>
</td>
</tr>

</table>

<br>
<dtml-comment>
<INPUT TYPE="submit" NAME="..:method" VALUE=" Return to &dtml-id; ">
</dtml-comment>

</FORM>

<dtml-var standard_html_footer>
  




More information about the zopeorg-checkins mailing list