Updated WebGUI help to match new items and added a whole new help engine.

This commit is contained in:
JT Smith 2002-07-15 01:38:09 +00:00
parent d1f8f816f8
commit 62264cbcb3
10 changed files with 591 additions and 15 deletions

View file

@ -222,6 +222,7 @@ sub www_editDownload {
$session{form}{did} = "new";
}
%download = WebGUI::SQL->quickHash("select * from DownloadManager_file where downloadId='$session{form}{did}'");
$output .= helpIcon(2,$namespace);
$output .= '<h1>'.WebGUI::International::get(10,$namespace).'</h1>';
$f = WebGUI::HTMLForm->new;
$f->hidden("wid",$_[0]->get("wobjectId"));

View file

@ -229,7 +229,8 @@ sub www_editEvent {
$f->hidden("until");
$special = $f->printRowsOnly;
}
$output = '<h1>'.WebGUI::International::get(13,$namespace).'</h1>';
$output = helpIcon(2,$namespace);
$output .= '<h1>'.WebGUI::International::get(13,$namespace).'</h1>';
$f = WebGUI::HTMLForm->new;
$f->hidden("wid",$_[0]->get("wobjectId"));
$f->hidden("eid",$session{form}{eid});

View file

@ -161,7 +161,8 @@ sub www_editQuestion {
tie %question, 'Tie::CPHash';
if (WebGUI::Privilege::canEditPage()) {
%question = WebGUI::SQL->quickHash("select * from FAQ_question where questionId='$session{form}{qid}'");
$output = '<h1>'.WebGUI::International::get(10,$namespace).'</h1>';
$output = helpIcon(2,$namespace);
$output .= '<h1>'.WebGUI::International::get(10,$namespace).'</h1>';
$f = WebGUI::HTMLForm->new;
$f->hidden("wid",$_[0]->get("wobjectId"));
$session{form}{qid} = "new" if ($session{form}{qid} eq "");
@ -263,11 +264,11 @@ sub www_view {
}
$qNa .= '<a name="'.$question{questionId}.'"><span class="faqQuestion">';
if ($_[0]->get("qaOn")) {
$qNa .= $q.' ';
$qNa .= $q.': ';
}
$qNa .= $question{question}.'</span></a><br>';
if ($_[0]->get("qaOn")) {
$qNa .= $a.' ';
$qNa .= $a.': ';
}
$qNa .= $question{answer};
if ($_[0]->get("topOn")) {

View file

@ -171,7 +171,8 @@ sub www_editLink {
} else {
$newWindow = $link{newWindow};
}
$output = '<h1>'.WebGUI::International::get(12,$namespace).'</h1>';
$output = helpIcon(2,$namespace);
$output .= '<h1>'.WebGUI::International::get(12,$namespace).'</h1>';
$f = WebGUI::HTMLForm->new;
$f->hidden("wid",$_[0]->get("wobjectId"));
$f->hidden("lid",$linkId);

View file

@ -322,7 +322,8 @@ sub set {
sub www_addAccessory {
my ($output, $f, $accessory, @usedAccessories);
if (WebGUI::Privilege::canEditPage()) {
$output = '<h1>'.WebGUI::International::get(16,$namespace).'</h1>';
$output = helpIcon(4,$namespace);
$output .= '<h1>'.WebGUI::International::get(16,$namespace).'</h1>';
$f = WebGUI::HTMLForm->new;
$f->hidden("wid",$_[0]->get("wobjectId"));
$f->hidden("func","addAccessorySave");
@ -364,7 +365,8 @@ sub www_addAccessorySave {
sub www_addRelated {
my ($output, $f, $related, @usedRelated);
if (WebGUI::Privilege::canEditPage()) {
$output = '<h1>'.WebGUI::International::get(19,$namespace).'</h1>';
$output = helpIcon(5,$namespace);
$output .= '<h1>'.WebGUI::International::get(19,$namespace).'</h1>';
$f = WebGUI::HTMLForm->new;
$f->hidden("wid",$_[0]->get("wobjectId"));
$f->hidden("func","addRelatedSave");
@ -609,7 +611,8 @@ sub www_editFeature {
if (WebGUI::Privilege::canEditPage()) {
%data = WebGUI::SQL->quickHash("select * from Product_feature where
productFeatureId='$session{form}{fid}'");
$output = '<h1>'.WebGUI::International::get(22,$namespace).'</h1>';
$output = helpIcon(2,$namespace);
$output .= '<h1>'.WebGUI::International::get(22,$namespace).'</h1>';
$f = WebGUI::HTMLForm->new;
$f->hidden("wid",$_[0]->get("wobjectId"));
$session{form}{fid} = "new" if ($session{form}{fid} eq "");
@ -659,7 +662,8 @@ sub www_editSpecification {
if (WebGUI::Privilege::canEditPage()) {
%data = WebGUI::SQL->quickHash("select * from Product_specification where
productSpecificationId='$session{form}{sid}'");
$output = '<h1>'.WebGUI::International::get(25,$namespace).'</h1>';
$output = helpIcon(3,$namespace);
$output .= '<h1>'.WebGUI::International::get(25,$namespace).'</h1>';
$f = WebGUI::HTMLForm->new;
$f->hidden("wid",$_[0]->get("wobjectId"));
$session{form}{sid} = "new" if ($session{form}{sid} eq "");