Dotclear

Changeset 3639:fe9f4d94f86b


Ignore:
Timestamp:
12/29/17 14:17:26 (6 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add required attribute for mandatory fields

Files:
23 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r3636 r3639  
    1010* Update CKEditor from 4.6.2 to 4.7.3 
    1111* Update CodeMirror from 5.25.1 to 5.32.1 
     12* Add required attribute for mandatory fields 
    1213* Fix: Avoid horizontal scrolling table when longest comment's usernames in list of comments 
    1314* Fix: Cope with MySQLi connection via socket 
  • admin/_charte.php

    r3499 r3639  
    244244                                   <p class="form-note">p class="form-note".</p> 
    245245                                   <p><label for="ex4" class="classic">Label class="classic" + input text :</label> <input id="ex4" type="text" /></p> 
    246                                    <p><label for="ex2" class="required"><abbr title="'.__('Required field').'">*</abbr> Label class="required" :</label> <input id="ex2" type="text" /><span class="form-note">span class="form-note"</span></p> 
     246                                   <p><label for="ex2" class="required"><abbr title="Champ obligatoire">*</abbr> Label class="required" :</label> <input id="ex2" type="text" required placeholder="exemple" /><span class="form-note">span class="form-note"</span></p> 
    247247                                   <p><label for="ex11" class="bold">Label class="bold" :</label> <input id="ex11" type="text" /></p> 
    248248                                   <p class="form-note">La class="bold" est bien sûr à écrire en minuscules.</p> 
  • admin/blog.php

    r2852 r3639  
    8181     '<div>'.$core->formNonce().'</div>'. 
    8282     '<p><label class="required" for="blog_id"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:').'</label> '. 
    83      form::field('blog_id',30,32,html::escapeHTML($blog_id)).'</p>'. 
     83     form::field('blog_id',30,32,html::escapeHTML($blog_id),'','',false,'required placeholder="'.__('Blog ID').'"').'</p>'. 
    8484     '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').'</p> '; 
    8585 
    8686     echo 
    8787     '<p><label class="required" for="blog_name"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog name:').'</label> '. 
    88      form::field('blog_name',30,255,html::escapeHTML($blog_name)).'</p>'. 
     88     form::field('blog_name',30,255,html::escapeHTML($blog_name),'','',false,'required placeholder="'.__('Blog name').'"').'</p>'. 
    8989 
    9090     '<p><label class="required" for="blog_url"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog URL:').'</label> '. 
    91      form::field('blog_url',30,255,html::escapeHTML($blog_url)).'</p>'. 
     91     form::field('blog_url',30,255,html::escapeHTML($blog_url),'','',false,'required placeholder="'.__('Blog URL').'"').'</p>'. 
    9292 
    9393     '<p class="area"><label for="blog_desc">'.__('Blog description:').'</label> '. 
  • admin/blog_pref.php

    r3560 r3639  
    368368     echo 
    369369     '<p><label for="blog_name" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog name:').'</label>'. 
    370      form::field('blog_name',30,255,html::escapeHTML($blog_name)).'</p>'; 
     370     form::field('blog_name',30,255,html::escapeHTML($blog_name),'','',false,'required placeholder="'.__('Blog name').'"').'</p>'; 
    371371 
    372372     echo 
     
    582582          echo 
    583583          '<p><label for="blog_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:').'</label>'. 
    584           form::field('blog_id',30,32,html::escapeHTML($blog_id)).'</p>'. 
     584          form::field('blog_id',30,32,html::escapeHTML($blog_id),'','',false,'required placeholder="'.__('Blog ID').'"').'</p>'. 
    585585          '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').'</p> '. 
    586586          '<p class="form-note warn">'.__('Please note that changing your blog ID may require changes in your public index.php file.').'</p>'; 
     
    588588          echo 
    589589          '<p><label for="blog_url" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog URL:').'</label>'. 
    590           form::field('blog_url',50,255,html::escapeHTML($blog_url)).'</p>'. 
     590          form::field('blog_url',50,255,html::escapeHTML($blog_url),'','',false,'required placeholder="'.__('Blog URL').'"').'</p>'. 
    591591 
    592592          '<p><label for="url_scan">'.__('URL scan method:').'</label>'. 
  • admin/category.php

    r3606 r3639  
    196196'<h3>'.__('Category information').'</h3>'. 
    197197'<p><label class="required" for="cat_title"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:').'</label> '. 
    198 form::field('cat_title',40,255,html::escapeHTML($cat_title)). 
     198form::field('cat_title',40,255,html::escapeHTML($cat_title),'','',false,'required placeholder="'.__('Name').'"'). 
    199199'</p>'; 
    200200if (!$cat_id) 
  • admin/comment.php

    r3024 r3639  
    3131$status_combo = dcAdminCombos::getCommentStatusescombo(); 
    3232 
    33 # Adding comment 
     33# Adding comment (comming from post form, comments tab) 
    3434if (!empty($_POST['add']) && !empty($_POST['post_id'])) 
    3535{ 
     
    5959 
    6060          dcPage::addSuccessNotice(__('Comment has been successfully created.')); 
    61           http::redirect($core->getPostAdminURL($rs->post_type,$rs->post_id,false).'&co=1'); 
    6261     } catch (Exception $e) { 
    6362          $core->error->add($e->getMessage()); 
    6463     } 
     64     http::redirect($core->getPostAdminURL($rs->post_type,$rs->post_id,false).'&co=1'); 
    6565} 
    6666 
     
    218218     '<h3>'.__('Comment submitted').'</h3>'. 
    219219     '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr>'.__('Author:').'</label>'. 
    220      form::field('comment_author',30,255,html::escapeHTML($comment_author)). 
     220     form::field('comment_author',30,255,html::escapeHTML($comment_author),'','',false,'required placeholder="'.__('Author').'"'). 
    221221     '</p>'. 
    222222 
  • admin/index.php

    r3614 r3639  
    299299          '<h4>'.__('New entry').'</h4>'. 
    300300          '<p class="col"><label for="post_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'. 
    301           form::field('post_title',20,255,'','maximal'). 
     301          form::field('post_title',20,255,'','maximal','',false,'required placeholder="'.__('Title').'"'). 
    302302          '</p>'. 
    303303          '<p class="area"><label class="required" '. 
    304304          'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 
    305           form::textarea('post_content',50,10). 
     305          form::textarea('post_content',50,10,'','','',false,'required placeholder="'.__('Content').'"'). 
    306306          '</p>'. 
    307307          '<p><label for="cat_id" class="classic">'.__('Category:').'</label> '. 
  • admin/install/index.php

    r3599 r3639  
    346346     '<fieldset><legend>'.__('Username and password').'</legend>'. 
    347347     '<p><label for="u_login" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Username:').' '. 
    348      form::field('u_login',30,32,html::escapeHTML($u_login)).'</label></p>'. 
     348     form::field('u_login',30,32,html::escapeHTML($u_login),'','',false,'required placeholder="'.__('Username').'"').'</label></p>'. 
    349349     '<div class="pw-table">'. 
    350350          '<p class="pw-cell">'. 
    351351               '<label for="u_pwd" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('New password:').'</label>'. 
    352                form::password('u_pwd',30,255,'','','',false,' data-indicator="pwindicator" '). 
     352               form::password('u_pwd',30,255,'','','',false,' data-indicator="pwindicator" required placeholder="'.__('Password').'"'). 
    353353          '</p>'. 
    354354          '<div id="pwindicator">'. 
     
    358358     '</div>'. 
    359359     '<p><label for="u_pwd2" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Confirm password:').' '. 
    360      form::password('u_pwd2',30,255).'</label></p>'. 
     360     form::password('u_pwd2',30,255,'','','',false,'required placeholder="'.__('Password').'"').'</label></p>'. 
    361361     '</fieldset>'. 
    362362 
  • admin/install/wizard.php

    r3565 r3639  
    201201'<form action="wizard.php" method="post">'. 
    202202'<p><label class="required" for="DBDRIVER"><abbr title="'.__('Required field').'">*</abbr> '.__('Database type:').'</label> '. 
    203     form::combo('DBDRIVER',array(__('MySQL (deprecated)')=>'mysql',__('MySQLi')=>'mysqli',__('MySQLi (full UTF-8)')=>'mysqlimb4',__('PostgreSQL')=>'pgsql',__('SQLite')=>'sqlite'),$DBDRIVER).'</p>'. 
     203    form::combo('DBDRIVER',array( 
     204     __('MySQL (deprecated)') => 'mysql', 
     205     __('MySQLi')                  => 'mysqli', 
     206     __('MySQLi (full UTF-8)')     => 'mysqlimb4', 
     207     __('PostgreSQL')              => 'pgsql', 
     208     __('SQLite')                  => 'sqlite'), 
     209     $DBDRIVER,'','',false,'required placeholder="'.__('Driver').'"').'</p>'. 
    204210'<p><label for="DBHOST">'.__('Database Host Name:').'</label> '. 
    205211form::field('DBHOST',30,255,html::escapeHTML($DBHOST)).'</p>'. 
     
    211217form::password('DBPASSWORD',30,255).'</p>'. 
    212218'<p><label for="DBPREFIX" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Database Tables Prefix:').'</label> '. 
    213 form::field('DBPREFIX',30,255,html::escapeHTML($DBPREFIX)).'</p>'. 
     219form::field('DBPREFIX',30,255,html::escapeHTML($DBPREFIX),'','',false,'required placeholder="'.__('Prefix').'"').'</p>'. 
    214220'<p><label for="ADMINMAILFROM">'.__('Master Email: (used as sender for password recovery)').'</label> '. 
    215221form::field('ADMINMAILFROM',30,255,html::escapeHTML($ADMINMAILFROM)).'</p>'. 
  • admin/langs.php

    r3627 r3639  
    271271     form::combo(array('pkg_url'),$dc_langs_combo).'</p>'. 
    272272     '<p class="field"><label for="your_pwd1" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 
    273      form::password(array('your_pwd','your_pwd1'),20,255).'</p>'. 
     273     form::password(array('your_pwd','your_pwd1'),20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 
    274274     '<p><input type="submit" value="'.__('Install language').'" />'. 
    275275     $core->formNonce(). 
     
    286286     '<p>'.__('You can install languages by uploading zip files.').'</p>'. 
    287287     '<p class="field"><label for="pkg_file" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Language zip file:').'</label> '. 
    288      '<input type="file" id="pkg_file" name="pkg_file" /></p>'. 
     288     '<input type="file" id="pkg_file" name="pkg_file" required /></p>'. 
    289289     '<p class="field"><label for="your_pwd2" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 
    290      form::password(array('your_pwd','your_pwd2'),20,255).'</p>'. 
     290     form::password(array('your_pwd','your_pwd2'),20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 
    291291     '<p><input type="submit" name="upload_pkg" value="'.__('Upload language').'" />'. 
    292292     $core->formNonce(). 
  • admin/popup_link.php

    r3445 r3639  
    3131'<form id="link-insert-form" action="#" method="get">'. 
    3232'<p><label class="required" for="href"><abbr title="'.__('Required field').'">*</abbr> '.__('Link URL:').'</label> '. 
    33 form::field('href',35,512,html::escapeHTML($href)).'</p>'. 
     33form::field('href',35,512,html::escapeHTML($href),'','',false,'required placeholder="'.__('URL').'"').'</p>'. 
    3434'<p><label for="title">'.__('Link title:').'</label> '. 
    3535form::field('title',35,512,html::escapeHTML($title)).'</p>'. 
  • admin/post.php

    r3627 r3639  
    649649               '<p class="col">'. 
    650650               '<label class="required no-margin bold" for="post_title"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'. 
    651                form::field('post_title',20,255,html::escapeHTML($post_title),'maximal'). 
     651               form::field('post_title',20,255,html::escapeHTML($post_title),'maximal','',false,'required placeholder="'.__('Title').'"'). 
    652652               '</p>', 
    653653 
     
    661661               '<p class="area" id="content-area"><label class="required bold" '. 
    662662               'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 
    663                form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content)). 
     663               form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content), 
     664                    '','',false,'required placeholder="'.__('Content').'"'). 
    664665               '</p>', 
    665666 
     
    789790     '<div class="constrained">'. 
    790791     '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:').'</label>'. 
    791      form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))). 
     792     form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn')), 
     793          '','',false,'required placeholder="'.__('Author').'"'). 
    792794     '</p>'. 
    793795 
     
    802804     '<p class="area"><label for="comment_content" class="required"><abbr title="'.__('Required field').'">*</abbr> '. 
    803805     __('Comment:').'</label> '. 
    804      form::textarea('comment_content',50,8,html::escapeHTML('')). 
     806     form::textarea('comment_content',50,8,html::escapeHTML(''),'','',false,'required placeholder="'.__('Comment').'"'). 
    805807     '</p>'. 
    806808 
  • admin/style/default.css

    r3638 r3639  
    10421042  width: 99%; } 
    10431043 
     1044input.invalid, 
     1045textarea.invalid, 
     1046select.invalid, 
     1047input:not([type=file]):invalid:not(:focus) { 
     1048  color: #900; 
     1049  box-shadow: 0 0 0 3px rgba(218, 62, 90, 0.3); } 
     1050 
     1051input.invalid, 
     1052textarea.invalid, 
     1053input:not([type=file]):invalid:not(:focus) { 
     1054  border: 1px solid red; 
     1055  background: #FFBABA; } 
     1056 
    10441057input[type=text], 
    10451058input[type=password], 
    10461059textarea, 
    1047 select { 
     1060select, 
     1061input:not([type=file]):invalid, 
     1062input:not([type=file]):invalid:placeholder-shown { 
    10481063  color: #000; 
    10491064  box-shadow: 1px 1px 2px #f3f3f3 inset; 
     
    10531068input[type=text], 
    10541069input[type=password], 
    1055 textarea { 
     1070textarea, 
     1071input:not([type=file]):invalid, 
     1072input:not([type=file]):invalid:placeholder-shown { 
    10561073  background: #fcfcfc; 
    10571074  border-width: 1px; 
     
    10861103option.avail10n { 
    10871104  background: transparent url(../images/check-on.png) no-repeat 0 50%; } 
    1088  
    1089 input.invalid, 
    1090 textarea.invalid, 
    1091 select.invalid { 
    1092   color: #900; 
    1093   box-shadow: 0 0 0 3px rgba(218, 62, 90, 0.3); } 
    1094  
    1095 input.invalid, 
    1096 textarea.invalid { 
    1097   border: 1px solid red; 
    1098   background: #FFBABA; } 
    10991105 
    11001106input[type=text], 
  • admin/style/scss/partials/_forms.scss

    r3633 r3639  
    6565} 
    6666 
    67 input[type=text], 
    68 input[type=password], 
    69 textarea, 
    70 select { 
     67input.invalid, 
     68textarea.invalid, 
     69select.invalid, 
     70input:not([type=file]):invalid:not(:focus) { 
     71     color: #900; 
     72     box-shadow: 0 0 0 3px rgba(218, 62, 90, 0.3); 
     73} 
     74input.invalid, 
     75textarea.invalid, 
     76input:not([type=file]):invalid:not(:focus) { 
     77     border: 1px solid red; 
     78     background: #FFBABA; 
     79} 
     80 
     81input[type=text], 
     82input[type=password], 
     83textarea, 
     84select, 
     85input:not([type=file]):invalid, 
     86input:not([type=file]):invalid:placeholder-shown { 
    7187     color: #000; 
    7288     box-shadow: 1px 1px 2px #f3f3f3 inset; 
     
    7692input[type=text], 
    7793input[type=password], 
    78 textarea { 
     94textarea, 
     95input:not([type=file]):invalid, 
     96input:not([type=file]):invalid:placeholder-shown { 
    7997     background: #fcfcfc; 
    8098     border-width: 1px; 
     
    120138} 
    121139 
    122 input.invalid, 
    123 textarea.invalid, 
    124 select.invalid { 
    125      color: #900; 
    126      box-shadow: 0 0 0 3px rgba(218, 62, 90, 0.3); 
    127 } 
    128 input.invalid, 
    129 textarea.invalid { 
    130      border: 1px solid red; 
    131      background: #FFBABA; 
    132 } 
    133  
    134140input[type=text], 
    135141input[type=password], 
  • admin/user.php

    r3627 r3639  
    206206 
    207207'<p><label for="user_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('User ID:').'</label> '. 
    208 form::field('user_id',20,255,html::escapeHTML($user_id)). 
     208form::field('user_id',20,255,html::escapeHTML($user_id),'','',false,'required placeholder="'.__('Login').'"'). 
    209209'</p>'. 
    210210'<p class="form-note info">'.__('At least 2 characters using letters, numbers or symbols.').'</p>'; 
     
    222222          ($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> '). 
    223223          ($user_id != '' ? __('New password:') : __('Password:')).'</label>'. 
    224           form::password('new_pwd',20,255,'','','',false,' data-indicator="pwindicator" '). 
     224          form::password('new_pwd',20,255,'','','',false,' data-indicator="pwindicator" '. 
     225               ($user_id != '' ? '' : 'required placeholder="'.__('Password').'"')). 
    225226     '</p>'. 
    226227     '<div id="pwindicator">'. 
     
    233234'<p><label for="new_pwd_c" '.($user_id != '' ? '' : 'class="required"').'>'. 
    234235($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> ').__('Confirm password:').'</label> '. 
    235 form::password('new_pwd_c',20,255). 
     236form::password('new_pwd_c',20,255,'','','',false,($user_id != '' ? '' : 'required placeholder="'.__('Password').'"')). 
    236237'</p>'; 
    237238 
     
    308309'<p class="clear vertical-separator"><label for="your_pwd" class="required">'. 
    309310'<abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label>'. 
    310 form::password('your_pwd',20,255).'</p>'. 
     311form::password('your_pwd',20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 
    311312'<p class="clear"><input type="submit" name="save" accesskey="s" value="'.__('Save').'" />'. 
    312313($user_id != '' ? '' : ' <input type="submit" name="saveplus" value="'.__('Save and create another').'" />'). 
  • admin/users_actions.php

    r3627 r3639  
    312312     '<h3>'.__('Validate permissions').'</h3>'. 
    313313     '<p><label for="your_pwd" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label>'. 
    314      form::password('your_pwd',20,255).'</p>'. 
     314     form::password('your_pwd',20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 
    315315     '<p><input type="submit" accesskey="s" value="'.__('Save').'" />'. 
    316316     $hidden_fields. 
  • inc/admin/lib.dc.page.php

    r3637 r3639  
    180180 
    181181          $core->auth->user_prefs->addWorkspace('interface'); 
    182           $user_ui_hide_std_favicon = $core->auth->user_prefs->interface->hide_std_favicon; 
    183           if (!$user_ui_hide_std_favicon) { 
     182          if (!$core->auth->user_prefs->interface->hide_std_favicon) { 
    184183               echo 
    185184               '<link rel="icon" type="image/png" href="images/favicon96-login.png" />'."\n". 
  • inc/admin/lib.moduleslist.php

    r3627 r3639  
    13121312          '<h4>'.__('Upload a zip file').'</h4>'. 
    13131313          '<p class="field"><label for="pkg_file" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Zip file path:').'</label> '. 
    1314           '<input type="file" name="pkg_file" id="pkg_file" /></p>'. 
     1314          '<input type="file" name="pkg_file" id="pkg_file" required /></p>'. 
    13151315          '<p class="field"><label for="your_pwd1" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 
    1316           form::password(array('your_pwd','your_pwd1'),20,255).'</p>'. 
     1316          form::password(array('your_pwd','your_pwd1'),20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 
    13171317          '<p><input type="submit" name="upload_pkg" value="'.__('Upload').'" />'. 
    13181318          $this->core->formNonce().'</p>'. 
     
    13241324          '<h4>'.__('Download a zip file').'</h4>'. 
    13251325          '<p class="field"><label for="pkg_url" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Zip file URL:').'</label> '. 
    1326           form::field(array('pkg_url','pkg_url'),40,255).'</p>'. 
     1326          form::field(array('pkg_url','pkg_url'),40,255,'','','',false,'required placeholder="'.__('URL').'"').'</p>'. 
    13271327          '<p class="field"><label for="your_pwd2" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 
    1328           form::password(array('your_pwd','your_pwd2'),20,255).'</p>'. 
     1328          form::password(array('your_pwd','your_pwd2'),20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 
    13291329          '<p><input type="submit" name="fetch_pkg" value="'.__('Download').'" />'. 
    13301330          $this->core->formNonce().'</p>'. 
  • plugins/blogroll/edit.php

    r3297 r3639  
    116116 
    117117     '<p><label for="link_desc" class="required classic"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 
    118      form::field('link_desc',30,255,html::escapeHTML($link_desc)). 
     118     form::field('link_desc',30,255,html::escapeHTML($link_desc),'','',false,'required placeholder="'.__('Title').'"'). 
    119119 
    120120     form::hidden('edit',1). 
     
    134134 
    135135     '<p><label for="link_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 
    136      form::field('link_title',30,255,html::escapeHTML($link_title)).'</p>'. 
     136     form::field('link_title',30,255,html::escapeHTML($link_title),'','',false,'required placeholder="'.__('Title').'"').'</p>'. 
    137137 
    138138     '<p><label for="link_href" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('URL:').'</label> '. 
    139      form::field('link_href',30,255,html::escapeHTML($link_href)).'</p>'. 
     139     form::field('link_href',30,255,html::escapeHTML($link_href),'','',false,'required placeholder="'.__('URL').'"').'</p>'. 
    140140 
    141141     '<p><label for="link_desc">'.__('Description:').'</label> '. 
  • plugins/blogroll/index.php

    r3297 r3639  
    273273'<h3>'.__('Add a new link').'</h3>'. 
    274274'<p class="col"><label for="link_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 
    275 form::field('link_title',30,255,$link_title). 
     275form::field('link_title',30,255,$link_title,'','',false,'required placeholder="'.__('Title').'"'). 
    276276'</p>'. 
    277277 
    278278'<p class="col"><label for="link_href" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('URL:').'</label> '. 
    279 form::field('link_href',30,255,$link_href). 
     279form::field('link_href',30,255,$link_href,'','',false,'required placeholder="'.__('URL').'"'). 
    280280'</p>'. 
    281281 
     
    298298'<h3>'.__('Add a new category').'</h3>'. 
    299299'<p><label for="cat_title" class=" classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label> '. 
    300 form::field('cat_title',30,255,$cat_title).' '. 
     300form::field('cat_title',30,255,$cat_title,'','',false,'required placeholder="'.__('Title').'"').' '. 
    301301form::hidden(array('p'),'blogroll'). 
    302302$core->formNonce(). 
     
    312312     '<h3>'.__('Import links').'</h3>'. 
    313313     '<p><label for="links_file" class=" classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('OPML or XBEL File:').'</label> '. 
    314      '<input type="file" id="links_file" name="links_file" /></p>'. 
     314     '<input type="file" id="links_file" name="links_file" required /></p>'. 
    315315     '<p>'.form::hidden(array('p'),'blogroll'). 
    316316     $core->formNonce(). 
  • plugins/importExport/inc/class.dc.import.flat.php

    r3627 r3639  
    224224               echo 
    225225               '<p><label for="your_pwd" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label>'. 
    226                form::password('your_pwd',20,255).'</p>'. 
     226               form::password('your_pwd',20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 
    227227 
    228228               '<p>'. 
  • plugins/pages/page.php

    r3627 r3639  
    487487               '<p class="col">'. 
    488488               '<label class="required no-margin bold" for="post_title"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'. 
    489                form::field('post_title',20,255,html::escapeHTML($post_title),'maximal'). 
     489               form::field('post_title',20,255,html::escapeHTML($post_title),'maximal','',false,'required placeholder="'.__('Title').'"'). 
    490490               '</p>', 
    491491 
     
    499499               '<p class="area" id="content-area"><label class="required bold" '. 
    500500               'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 
    501                form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content)). 
     501               form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content),'','',false,'required placeholder="'.__('Content').'"'). 
    502502               '</p>', 
    503503 
     
    664664     '<div class="constrained">'. 
    665665     '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:').'</label>'. 
    666      form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))). 
     666     form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn')),'','',false,'required placeholder="'.__('Author').'"'). 
    667667     '</p>'. 
    668668 
     
    677677     '<p class="area"><label for="comment_content" class="required"><abbr title="'.__('Required field').'">*</abbr> '. 
    678678     __('Comment:').'</label> '. 
    679      form::textarea('comment_content',50,8,html::escapeHTML('')). 
     679     form::textarea('comment_content',50,8,'','','',false,'required placeholder="'.__('Comment').'"'). 
    680680     '</p>'. 
    681681 
  • plugins/simpleMenu/index.php

    r3582 r3639  
    230230                                   'descr' => $item_descr, 
    231231                                   'url' => $item_url, 
    232                                    'targetBlank'  => $item_targetBlank  
     232                                   'targetBlank'  => $item_targetBlank 
    233233                              ); 
    234                                
     234 
    235235                              // Save menu in blog settings 
    236236                              $core->blog->settings->system->put('simpleMenu',$menu); 
     
    480480               echo '<fieldset><legend>'.$item_type_label.($item_select_label != '' ? ' ('.$item_select_label.')' : '').'</legend>'; 
    481481               echo '<p class="field"><label for="item_label" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '. 
    482                     __('Label of item menu:').'</label>'.form::field('item_label',20,255,$item_label).'</p>'; 
     482                    __('Label of item menu:').'</label>'. 
     483                    form::field('item_label',20,255,$item_label,'','',false,'required placeholder="'.__('Label').'"'). 
     484                    '</p>'; 
    483485               echo '<p class="field"><label for="item_descr" class="classic">'. 
    484486                    __('Description of item menu:').'</label>'.form::field('item_descr',30,255,$item_descr).'</p>'; 
    485487               echo '<p class="field"><label for="item_url" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '. 
    486                     __('URL of item menu:').'</label>'.form::field('item_url',40,255,$item_url).'</p>'; 
     488                    __('URL of item menu:').'</label>'. 
     489                    form::field('item_url',40,255,$item_url,'','',false,'required placeholder="'.__('URL').'"'). 
     490                    '</p>'; 
    487491               echo form::hidden('item_type',$item_type).form::hidden('item_select',$item_select); 
    488492               echo '<p class="field"><label for="item_descr" class="classic">'. 
     
    537541     foreach ($menu as $i => $m) { 
    538542          echo '<tr class="line" id="l_'.$i.'">'; 
    539            
     543 
    540544          //because targetBlank can not exists. This value has been added after this plugin creation. 
    541545          if((isset($m['targetBlank'])) && ($m['targetBlank'])) { 
     
    546550               $targetBlankStr =''; 
    547551          } 
    548            
     552 
    549553          if (!$step) { 
    550554               $count++; 
     
    562566               echo '<td class="nowrap">'.html::escapeHTML($m['url']).'</td>'; 
    563567               echo '<td class="nowrap">'.$targetBlankStr.'</td>'; 
    564   
     568 
    565569          } 
    566570          echo '</tr>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map