Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
SubForm Class Reference
+ Collaboration diagram for SubForm:

Public Member Functions

 __construct ($name, $width=100, $height=100, $mainurl="", $suburl="")
 
 SetParams ($array)
 
 SetParam ($key, $val="", $type="")
 
 SetKey ($key)
 
 GetMainForm ()
 
 GetMainJs ()
 
 GetSubJs ()
 
 GetLinkJsMainCall ()
 
 GetEmptyJsMainCall ()
 

Data Fields

 $mainjs
 
 $jsmaincall = 'submit_withpar([height],[width],\'[name]\',\'[id]\',\'[url]\')'
 
 $mainform
 
 $subjs
 
 $param = array()
 

Detailed Description

Definition at line 23 of file Class.SubForm.php.

Constructor & Destructor Documentation

__construct (   $name,
  $width = 100,
  $height = 100,
  $mainurl = "",
  $suburl = "" 
)

Definition at line 58 of file Class.SubForm.php.

Member Function Documentation

GetEmptyJsMainCall ( )

Definition at line 147 of file Class.SubForm.php.

GetLinkJsMainCall ( )

Definition at line 137 of file Class.SubForm.php.

GetMainForm ( )

Definition at line 83 of file Class.SubForm.php.

GetMainJs ( )

Definition at line 100 of file Class.SubForm.php.

GetSubJs ( )

Definition at line 108 of file Class.SubForm.php.

SetKey (   $key)

Definition at line 78 of file Class.SubForm.php.

SetParam (   $key,
  $val = "",
  $type = "" 
)

Definition at line 72 of file Class.SubForm.php.

SetParams (   $array)

Definition at line 67 of file Class.SubForm.php.

Field Documentation

$jsmaincall = 'submit_withpar([height],[width],\'[name]\',\'[id]\',\'[url]\')'

Definition at line 34 of file Class.SubForm.php.

$mainform
Initial value:
= '
<form name="[name]" method="POST" action="[url]">
[BLOCK PAR]
<input type="hidden" name="[name]" value="[val]"> [ENDBLOCK PAR]
</form>
'

Definition at line 36 of file Class.SubForm.php.

$mainjs
Initial value:
= '
function submit_withpar(height,width,name,[id],url) {
subwindow(height,width,name,url+\'&[id]=\'+[id]);
}
'

Definition at line 28 of file Class.SubForm.php.

$param = array()

Definition at line 55 of file Class.SubForm.php.

$subjs
Initial value:
= '
function sendform() {
var p = self.opener.document.forms.[name];
var lf = self.document.[name];
[BLOCK PAR]
if( lf.[name] ) { p.[name].value = lf.[name].value; } [ENDBLOCK PAR]
[BLOCK SEL]
if( lf.[name] ) { p.[name].value = lf.[name].options[lf.[name].selectedIndex].value; } [ENDBLOCK SEL]
p.submit();
}'

Definition at line 43 of file Class.SubForm.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen