<html>
<head>
   <title>${lang("comment.htmltitle")}</title>


<style type="text/css">
<!--

body {
   margin: 6px; background: #dddddd ;
}
h1, h2, h3, h4, h5, h6, p, li, dt, dd, div, td, blockquote
{
   font-family:arial, helvetica, sans-serif;
}
            
.pformbox
{
   padding-left: 10px;
   padding-right: 10px;
   padding-bottom: 0px;
   padding-top: 0px;
}

h1 { padding-bottom: 0px; margin-bottom: 0px;}
h2
{
   border: none;
   margin: none;
   padding-bottom: 0px;
   margin-bottom: 0px;
   padding: 2px;
   border-top: 1px solid black;
   border-left: 1px solid black;
   border-right: 1px solid black;
   background-color: #003366;
   color: white;
}
h3 { padding-bottom: 0px; margin-bottom: 0px;}
h4 { padding-bottom: 0px; margin-bottom: 0px; }

.pdiscl
{
   border: none;
   margin: none;
   padding: 4px;
   margin-top: 6px;
   margin-bottom: 6px;
   
   border-color: #FFF;
   border-width: 2px;
   border-style: solid;
}

.pformstep01
{
   border: none;
   margin: none;
   padding: 8px;
   margin-top: 0px;
   margin-bottom: 6px;
   background-color: #FAFAD2;
   border-color: gray;
   border-width: 1px;
   border-style: solid;
}
.pformstep02
{
   border: none;
   margin: none;
   padding: 8px;
   margin-top: 0px;
   margin-bottom: 6px;
   background-color: #FAFAD2;
   border-color: gray;
   border-width: 1px;
   border-style: solid;
}

.pformstep03
{
   border: none;
   margin: none;
   padding: 8px;
   margin-top: 0px;
   margin-bottom: 6px;
   background-color: #FAFAD2;
   border-color: gray;
   border-width: 1px;
   border-style: solid;
}

.pformstep06
{
   border: none;
   margin: none;
   padding: 8px;
   margin-top: 0px;
   margin-bottom: 6px;
   background-color: #ffffff;
   border-color: gray;
   border-width: 1px;
   border-style: solid;
}

input.psubmit
{
   padding: 5px;
   border: 2px solid green;
   background-color: #6F0;
}

input.preset
{
   padding: 5px;
   border: 2px solid red;
   background-color: #F96;
}

.pbuttons {
   text-align: right;
}
input
{
   background-color: #efefef;
}

textarea
{
   background-color: #efefef;
}


input.preq
{
   background-color: #ffffff;
}
textarea.preq
{
   background-color: #ffffff;
}

.error {
   color: red;
}
-->
</style>

</head>

<body bgcolor="#dddddd">

<function showErrors(aField)>
   <comment>
      function to display error message at the input box  // occam, 2003-06-09
   </comment>
   <if errors>
      <list errors as e>
         <if e.field==aField>       
            ${lang(e.message + "." + e.field)}
         </if>
      </list>
   </if>         
</function>

<div class="pformbox">
   <h3>
      ${lang("comment.header")}
   </h3>
   <p>
      ${lang("comment.note")}
   </p>
   
   <h1>
      ${lang("comment.formtitle")}
   </h1>

    <if errors>
      <p class="error">${lang("comment.errors")}</p>
      </if>

   <form enctype="multipart/form-data" action="${actionURL}&do=opensession&sessiontype=comment" method="post">
      <input type="hidden" name="to_media" value="${to_media}">   

      <h2>
         ${lang("posting.step01")}
      </h2>
      <div class="pformstep01">
   
<!-- TITEL -->
<h4>
${lang("comment.title")}
</h4>
<input type="text" class="preq" name="title" size="45" maxlength="45" value="${utility.encodeHTML(title)}"> 
<if errors>
<big class="error"><call showErrors("title")></big>
<else>
<small><strong>(${lang("required")})</strong></small>
</if>

<!-- AUTHOR -->
<h4>
${lang("comment.name")}
</h4>
<input type="text" class="preq" name="creator" size="20" maxlength="45" value="${utility.encodeHTML(creator)}">
<if errors>
<big class="error"><call showErrors("creator")></big>
<else>
<small><strong>(${lang("required")})</strong></small>
</if>

<!-- CONTENT -->
<h4>
${lang("comment.text")}
</h4>
<textarea name="description" class="preq" rows="20" cols="74" wrap=virtual>${utility.encodeHTML(description)}</textarea>
<if errors>
<big class="error"><call showErrors("description")></big>
<else>
<small><strong>(${lang("required")})</strong></small>
</if>
</div>

<h2>
${lang("posting.step02")}
</h2>
<div class="pformstep02">

         <!-- EMAIL -->
         <h4>
            ${lang("comment.email")}
         </h4>
         <input type="text" name="email" size="30" maxlength="80" value="${utility.encodeHTML(email)}">
         <small>(${lang("optional")})</small>
         
         <!-- URL -->   
         <h4>
            ${lang("comment.url")}
         </h4>
         <input type="text" name="main_url" size="40" maxlength="160" value="http://">
         <small>(${lang("optional")})</small>
         
         <!-- PHONE -->   
         <h4>
            ${lang("comment.phone")}
         </h4>
         <input type="text" name="phone" size="30" maxlength="80" value="${utility.encodeHTML(phone)}">
         <small>(${lang("optional")})</small>
         
         <!-- Adress -->
         <h4>
            ${lang("comment.address")}
         </h4>
         <input type="text" name="address" size="40" maxlength="160" value="${utility.encodeHTML(address)}">
         <small>(${lang("optional")})</small>
            
         <!-- LANG -->
         <h4>
            ${lang("comment.language")}
         </h4>
         <select name="to_language">
            <list languages as l>
               <option value="${l.id}">${l.name}</option>
            </list>
         </select>
         <small>(${lang("optional")})</small>
         
      </div>
    
    
    
    <comment>
      comments file upload -- lexi 2004-07-05
    </comment>
    
    <h2>
         ${lang("posting.step03")}
      </h2>
      <div class="pformstep03">   
         <input type="hidden" name="nrmediaitems" value="1">
      
         <p>Hier kannst du deiner Erg&auml;nzung noch eine Datei (etwa ein weiteres Bild) anh&auml;ngen:</p>
      
               <h4>
                 <label for="media1">${lang("posting.media.media")}</label>
               </h4>
               <input type="file" name="media1" id="media1" />
               <small>(${lang("optional")})</small>
      
               <h4>
                 <label for="media1_title">${lang("posting.media.title")}</label>
               </h4>
               <input type="text" name="media1_title" size="60" maxlength="80" value="" />
         <small>(${lang("optional")})</small>
      
      </div>
    
      <h2>
         ${lang("posting.step04")}
      </h2>
      <div class="pformstep06">
         <div class="pbuttons">
            <input type="submit" name="post" class="psubmit" value="${lang("comment.submit")}">
            <input type="reset" class="preset" value="${lang("comment.reset")}">
         </div>
      </div>      
   </form>
</div>
</body>
</html>


-- ReginaRegenbogen - 24 Apr 2005
Topic revision: r1 - 24 Apr 2005, ReginaRegenbogen
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback