diff options
-rwxr-xr-x | bin/aa.pl | 14 | ||||
-rwxr-xr-x | bin/admin.pl | 34 | ||||
-rwxr-xr-x | bin/am.pl | 32 | ||||
-rwxr-xr-x | bin/arap.pl | 8 | ||||
-rwxr-xr-x | bin/arapprn.pl | 2 |
5 files changed, 45 insertions, 45 deletions
@@ -931,7 +931,7 @@ sub delete { <h4>|.$locale->text('Are you sure you want to delete Transaction').qq| $form->{invnumber}</h4> -<input name=action class=submit type=submit value="|.$locale->text('Yes').qq|"> +<button name="action" class="submit" type="submit" value="yes">|.$locale->text('Yes').qq|</button> </form> </body> @@ -1189,8 +1189,8 @@ sub search { </table> <br> -<input type=hidden name=action value=continue> -<input class=submit type=submit name=action value="|.$locale->text('Continue').qq|">|; +<input type="hidden" name="action" value="continue"> +<button class="submit" type="submit" name="action" value="continue">|.$locale->text('Continue').qq|</button>|; $form->hide_form(qw(nextsub path login sessionid)); @@ -1557,14 +1557,14 @@ sub transactions { if ($myconfig{acs} !~ /$form->{ARAP}--$form->{ARAP}/) { $i = 1; if ($form->{ARAP} eq 'AR') { - $button{'AR--Add Transaction'}{code} = qq|<input class=submit type=submit name=action value="|.$locale->text('AR Transaction').qq|"> |; + $button{'AR--Add Transaction'}{code} = qq|<button class="submit" type="submit" name="action" value="ar_transaction">|.$locale->text('AR Transaction').qq|</button> |; $button{'AR--Add Transaction'}{order} = $i++; - $button{'AR--Sales Invoice'}{code} = qq|<input class=submit type=submit name=action value="|.$locale->text('Sales Invoice.').qq|"> |; + $button{'AR--Sales Invoice'}{code} = qq|<button class="submit" type="submit" name="action" value="sales_invoice_">|.$locale->text('Sales Invoice.').qq|</button> |; $button{'AR--Sales Invoice'}{order} = $i++; } else { - $button{'AP--Add Transaction'}{code} = qq|<input class=submit type=submit name=action value="|.$locale->text('AP Transaction').qq|"> |; + $button{'AP--Add Transaction'}{code} = qq|<button class="submit" type="submit" name="action" value="ap_transaction">|.$locale->text('AP Transaction').qq|</button> |; $button{'AP--Add Transaction'}{order} = $i++; - $button{'AP--Vendor Invoice'}{code} = qq|<input class=submit type=submit name=action value="|.$locale->text('Vendor Invoice.').qq|"> |; + $button{'AP--Vendor Invoice'}{code} = qq|<button class="submit" type="submit" name="action" value="vendor_invoice_">|.$locale->text('Vendor Invoice.').qq|</button> |; $button{'AP--Vendor Invoice'}{order} = $i++; } diff --git a/bin/admin.pl b/bin/admin.pl index 359defa7..646caed0 100755 --- a/bin/admin.pl +++ b/bin/admin.pl @@ -125,7 +125,7 @@ sub setup_initial_password { </table> <input type="hidden" name="path" value="$form->{path}" /> <input type="hidden" name="sessionid" value="$form->{sessionid}" /> - <p><input type="submit" class="submit" name="action" value="|.$locale->text('Change Password').qq|" /></p> + <p><button type="submit" class="submit" name="action" value="change_password">|.$locale->text('Change Password').qq|</button></p> </form> <a href="http://www.ledgersmb.org/">LedgerSMB |.$locale->text('website').qq|</a> @@ -160,7 +160,7 @@ sub adminlogin { <tr> <th>|.$locale->text('Password').qq|</th> <td><input type="password" name="password" /></td> - <td><input type="submit" class="submit" name="action" value="|.$locale->text('Login').qq|" /></td> + <td><button type="submit" class="submit" name="action" value="login">|.$locale->text('Login').qq|"</button></td> </tr> </table> <input type="hidden" name="action" value="login" /> @@ -226,7 +226,7 @@ sub edit { sub form_footer { if ($form->{edit}) { - $delete = qq|<input type="submit" class="submit" name="action" value="|.$locale->text('Delete').qq|" /> + $delete = qq|<button type="submit" class="submit" name="action" value="delete">|.$locale->text('Delete').qq|</button> <input type="hidden" name="edit" value="1" />|; } @@ -234,7 +234,7 @@ sub form_footer { <input name="callback" type="hidden" value="$form->{script}?action=list_users&path=$form->{path}&sessionid=$form->{sessionid}" /> <input type="hidden" name="path" value="$form->{path}" /> <input type="hidden" name="sessionid" value="$form->{sessionid}" /> - <input type="submit" class="submit" name="action" value="|.$locale->text('Save').qq|" /> + <button type="submit" class="submit" name="action" value="save">|.$locale->text('Save').qq|</button> $delete </form> </body> @@ -247,10 +247,10 @@ sub list_users { open(FH, "$memberfile") or $form->error("$memberfile : $!"); - $nologin = qq|<input type="submit" class="submit" name="action" value="|.$locale->text('Lock System').qq|" />|; + $nologin = qq|<button type="submit" class="submit" name="action" value="lock_system">|.$locale->text('Lock System').qq|</button>|; if (-e "$userspath/nologin") { - $nologin = qq|<input type="submit" class="submit" name="action" value="|.$locale->text('Unlock System').qq|" />|; + $nologin = qq|<button type="submit" class="submit" name="action" value="unlock_system">|.$locale->text('Unlock System').qq|</button>|; } @@ -274,7 +274,7 @@ sub list_users { # type=submit $locale->text('PgPP Database Administration') foreach $item (User->dbdrivers) { - $dbdrivers .= qq|<input name="action" type="submit" class="submit" value="|.$locale->text("$item Database Administration").qq|" />|; + $dbdrivers .= qq|<button name="action" type="submit" class="submit" value="|.(lc $item).'_database_administration">'.$locale->text("$item Database Administration").qq|</button>|; } @@ -345,13 +345,13 @@ sub list_users { <input type="hidden" name="path" value="$form->{path}" /> <input type="hidden" name="sessionid" value="$form->{sessionid}" /> <br /> - <input type="submit" class="submit" name="action" value="|.$locale->text('Add User').qq|" /> - <input type="submit" class="submit" name="action" value="|.$locale->text('Change Admin Password').qq|" /> + <button type="submit" class="submit" name="action" value="add_user">|.$locale->text('Add User').qq|</button> + <button type="submit" class="submit" name="action" value="change_admin_password">|.$locale->text('Change Admin Password').qq|</button> $dbdrivers $nologin - <input type="submit" class="submit" name="action" value="|.$locale->text('Logout').qq|" /> + <button type="submit" class="submit" name="action" value="logout">|.$locale->text('Logout').qq|</button> </form> |.$locale->text('Click on login name to edit!').qq| @@ -1018,7 +1018,7 @@ sub change_admin_password { <hr size="3" noshade /> <input type="hidden" name="path" value="$form->{path}" /> <input type="hidden" name="sessionid" value="$form->{sessionid}" /> - <p><input type="submit" class="submit" name="action" value="|.$locale->text('Change Password').qq|" /></p> + <p><button type="submit" class="submit" name="action" value="change_password">|.$locale->text('Change Password').qq|</button></p> </form> </body> </html> @@ -1187,8 +1187,8 @@ sub dbselect_source { <input type="hidden" name="path" value="$form->{path}" /> <input type="hidden" name="sessionid" value="$form->{sessionid}" /> <br /> - <input type="submit" class="submit" name="action" value="|.$locale->text('Create Dataset').qq|" /> - <input type="submit" class="submit" name="action" value="|.$locale->text('Delete Dataset').qq|" /> + <button type="submit" class="submit" name="action" value="create_dataset">|.$locale->text('Create Dataset').qq|</button> + <button type="submit" class="submit" name="action" value="delete_dataset">|.$locale->text('Delete Dataset').qq|</button> </form> <p>|.$locale->text('This is a preliminary check for existing sources. Nothing will be created or deleted at this stage!') .qq|</p> @@ -1326,7 +1326,7 @@ sub create_dataset { <input name="callback" type="hidden" value="$form->{script}?action=list_users&path=$form->{path}&sessionid=$form->{sessionid}" /> <input type="hidden" name="nextsub" value="dbcreate" /> <br /> - <input type="submit" class="submit" name="action" value="|.$locale->text('Continue').qq|" /> + <button type="submit" class="submit" name="action" value="continue">|.$locale->text('Continue').qq|</button> </form> </body> </html> @@ -1358,7 +1358,7 @@ sub dbcreate { <input type="hidden" name="path" value="$form->{path}" /> <input type="hidden" name="sessionid" value="$form->{sessionid}" /> <input type="hidden" name="nextsub" value="list_users" /> - <p><input type="submit" class="submit" name="action" value="|.$locale->text('Continue').qq|" /></p> + <p><button type="submit" class="submit" name="action" value="continue">|.$locale->text('Continue').qq|</button></p> </form> </center> </body> @@ -1413,7 +1413,7 @@ sub delete_dataset { <td> <hr size="3" noshade /> <br /> - <input type="submit" class="submit" name="action" value="|.$locale->text('Continue').qq|" /> + <button type="submit" class="submit" name="action" value="continue">|.$locale->text('Continue').qq|</button> </td> </tr> </table> @@ -1450,7 +1450,7 @@ sub dbdelete { <input type="hidden" name="path" value="$form->{path}" /> <input type="hidden" name="sessionid" value="$form->{sessionid}" /> <input type="hidden" name="nextsub" value="list_users" /> - <p><input type="submit" class="submit" name="action" value="|.$locale->text('Continue').qq|" /></p> + <p><button type="submit" class="submit" name="action" value="continue">|.$locale->text('Continue').qq|</button></p> </form> </body> </html> @@ -225,7 +225,7 @@ if ($form->{charttype} eq "A") { print qq| <tr> <th align="right">|.$locale->text('GIFI').qq|</th> - <td><input name=gifi_accno size=9 value=$form->{gifi_accno}></td> + <td><input name=gifi_accno size=9 value="$form->{gifi_accno}"></td> </tr> </table> </td> @@ -748,7 +748,7 @@ sub list_department { $form->hide_form(qw(type callback path login sessionid)); print qq| -<input class=submit type=submit name=action value="|.$locale->text('Add Department').qq|">|; +<button class="submit" type="submit" name="action" value="add_department">|.$locale->text('Add Department').qq|"</button>|; if ($form->{lynx}) { require "bin/menu.pl"; @@ -938,7 +938,7 @@ sub list_business { $form->hide_form(qw(type callback path login sessionid)); print qq| -<input class=submit type=submit name=action value="|.$locale->text('Add Business').qq|">|; +<button class="submit" type="submit" name="action" value="add_business">|.$locale->text('Add Business').qq|</button>|; if ($form->{lynx}) { require "bin/menu.pl"; @@ -1139,7 +1139,7 @@ sub list_sic { $form->hide_form(qw(type callback path login sessionid)); print qq| -<input class=submit type=submit name=action value="|.$locale->text('Add SIC').qq|">|; +<button class="submit" type="submit" name="action" value="add_sic">|.$locale->text('Add SIC').qq|</button>|; if ($form->{lynx}) { require "bin/menu.pl"; @@ -1327,7 +1327,7 @@ sub list_language { $form->hide_form(qw(type callback path login sessionid)); print qq| -<input class=submit type=submit name=action value="|.$locale->text('Add Language').qq|">|; +<button class="submit" type="submit" name="action" value="add_language"|.$locale->text('Add Language').qq|</button>|; if ($form->{lynx}) { require "bin/menu.pl"; @@ -1451,7 +1451,7 @@ sub delete_language { <input type=hidden name=action value=continue> <input type=hidden name=nextsub value=yes_delete_language> -<input name=action class=submit type=submit value="|.$locale->text('Continue').qq|"> +<button name="action" class="submit" type="submit" value="continue">|.$locale->text('Continue').qq|</button> </form> </body> @@ -1617,7 +1617,7 @@ $form->{body} $form->hide_form(qw(file type path login sessionid)); print qq| -<input name=action type=submit class=submit value="|.$locale->text('Edit').qq|">|; +<button name="action" type="submit" class="submit" value="edit">|.$locale->text('Edit').qq|</button>|; if ($form->{lynx}) { require "bin/menu.pl"; @@ -1664,7 +1664,7 @@ $form->{body} </textarea> <br> -<input type=submit class=submit name=action value="|.$locale->text('Save').qq|">|; +<button type="submit" class="submit" name="action" value="save">|.$locale->text('Save').qq|</button>|; if ($form->{lynx}) { require "bin/menu.pl"; @@ -1833,7 +1833,7 @@ sub defaults { $form->hide_form(qw(path login sessionid)); print qq| -<input type=submit class=submit name=action value="|.$locale->text('Save').qq|">|; +<button type="submit" class="submit" name="action" value="save">|.$locale->text('Save').qq|</button>|; if ($form->{lynx}) { require "bin/menu.pl"; @@ -1958,8 +1958,8 @@ sub display_taxes { } print qq| -<input type=submit class=submit name=action value="|.$locale->text('Update').qq|"> -<input type=submit class=submit name=action value="|.$locale->text('Save').qq|">|; +<button type="submit" class="submit" name="action" value="update">|.$locale->text('Update').qq|</button> +<button type="submit" class="submit" name="action" value="save_taxes">|.$locale->text('Save').qq|</button>|; if ($form->{lynx}) { require "bin/menu.pl"; @@ -2187,7 +2187,7 @@ sub config { $form->hide_form(qw(path login sessionid)); print qq| -<input type=submit class=submit name=action value="|.$locale->text('Save').qq|">|; +<button type="submit" class="submit" name="action" value="save">|.$locale->text('Save').qq|</button>|; if ($form->{lynx}) { require "bin/menu.pl"; @@ -2324,7 +2324,7 @@ sub audit_control { <br> <input type=hidden name=nextsub value=doclose> <input type=hidden name=action value=continue> -<input type=submit class=submit name=action value="|.$locale->text('Continue').qq|"> +<button type="submit" class="submit" name="action" value="continue">|.$locale->text('Continue').qq|</button> </form> @@ -2468,7 +2468,7 @@ sub list_warehouse { $form->hide_form(qw(type callback path login sessionid)); print qq| -<input class=submit type=submit name=action value="|.$locale->text('Add Warehouse').qq|">|; +<button class="submit" type="submit" name="action" value="add_warehouse">|.$locale->text('Add Warehouse').qq|</button>|; if ($form->{lynx}) { require "bin/menu.pl"; @@ -2605,7 +2605,7 @@ sub yearend { $form->hide_form(qw(path login sessionid)); print qq| -<input class=submit type=submit name=action value="|.$locale->text('Continue').qq|">|; +<button class="submit" type="submit" name="action" value="continue">|.$locale->text('Continue').qq|</button>|; } @@ -2886,7 +2886,7 @@ print qq| $form->hide_form(qw(path login sessionid)); print qq| -<input class=submit type=submit name=action value="|.$locale->text('Process Transactions').qq|">| if $k; +<button class="submit" type="submit" name="action" value="process_transactions">|.$locale->text('Process Transactions').qq|</button>| if $k; if ($form->{lynx}) { require "bin/menu.pl"; diff --git a/bin/arap.pl b/bin/arap.pl index 1f92d5b0..29191aaa 100755 --- a/bin/arap.pl +++ b/bin/arap.pl @@ -213,9 +213,9 @@ sub select_name { print qq| <input type=hidden name=nextsub value=name_selected> -<input type=hidden name=vc value=$table> +<input type=hidden name=vc value="$table"> <br> -<input class=submit type=submit name=action value="|.$locale->text('Continue').qq|"> +<button class="submit" type="submit" name="action" value="continue">|.$locale->text('Continue').qq|</button> </form> </body> @@ -408,7 +408,7 @@ sub select_project { print qq| <input type=hidden name=nextsub value=project_selected> <br> -<input class=submit type=submit name=action value="|.$locale->text('Continue').qq|"> +<button class="submit" type="submit" name="action" value="continue">|.$locale->text('Continue').qq|</button> </form> </body> @@ -507,7 +507,7 @@ sub repost { <h4>$msg</h4> -<input name=action class=submit type=submit value="|.$locale->text('Continue').qq|"> +<button name="action" class="submit" type="submit" value="continue">|.$locale->text('Continue').qq|</button> </form> </body> diff --git a/bin/arapprn.pl b/bin/arapprn.pl index 979ae578..45ded305 100755 --- a/bin/arapprn.pl +++ b/bin/arapprn.pl @@ -583,7 +583,7 @@ sub select_payment { if ($ok) { print qq| -<input class=submit type=submit name=action value="|.$locale->text('Continue').qq|">|; +<button class="submit" type="submit" name="action" value="continue">|.$locale->text('Continue').qq|</button>|; } print qq| |