Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
vote_overview.lib.php File Reference

Namespaces

namespace  vote

Functions

 printSiteTitle ()
 printSafeguard ($sign, $text, $mode=NULL, $voteID=NULL, $showrangeID=NULL, $referer=NULL)
 printSearchResults ($rangeAR, $searchString)
 printSelections ($range, $sarchRange="", $safeguard=NULL)
 printVoteTable ($mode, $votes=NULL, $openID=NULL)
 makeTableHeaderCell ($text=" ", $width="5%", $align="center", $colspan="1")
 makeTableDataCell ($text=" ", $class="steel1", $align="center", $width="5%", $colspan="1")
 makeTableDataCellLink ($username, $text=" ", $class="steel1", $align="center", $width="5%", $colspan="1")
 makeTableDataCellForm ($displayclass="steel1", $action="overview", $button_name="ok", $button_tooltip="Tooltip", $hidden1_name=NULL, $hidden1_value=NULL, $hidden2_name=NULL, $hidden2_value=NULL, $hidden3_name=NULL, $hidden3_value=NULL, $hidden4_name=NULL, $hidden4_value=NULL)
 makeNewVoteSelectForm ($action)
 makeDisplaySelectForm ($action)
 makeSearchForm ()
 makeArrow ($timestmp, $open, $displayclass, $mode, $voteID=NULL)

Function Documentation

makeArrow (   $timestmp,
  $open,
  $displayclass,
  $mode,
  $voteID = NULL 
)

makes a makeSelectForm private

Returns

Here is the call graph for this function:

Here is the caller graph for this function:

makeDisplaySelectForm (   $action)

makes a makeSelectForm private

Parameters
@param
@param
Returns

Here is the call graph for this function:

Here is the caller graph for this function:

makeNewVoteSelectForm (   $action)

makes a makeSelectForm private

Parameters
@param
@param
Returns

Here is the call graph for this function:

Here is the caller graph for this function:

makeSearchForm ( )

makes a makeSelectForm private

Returns

Here is the call graph for this function:

Here is the caller graph for this function:

makeTableDataCell (   $text = " ",
  $class = "steel1",
  $align = "center",
  $width = "5%",
  $colspan = "1" 
)

makes a

...</t> line private

Parameters
textstring The Text to display or 'blindgif' (optional)
classstring class (optional)
alignstring align (optional)
widthstring width (optional)
Returns
string a string with a table-head

Here is the caller graph for this function:

makeTableDataCellForm (   $displayclass = "steel1",
  $action = "overview",
  $button_name = "ok",
  $button_tooltip = "Tooltip",
  $hidden1_name = NULL,
  $hidden1_value = NULL,
  $hidden2_name = NULL,
  $hidden2_value = NULL,
  $hidden3_name = NULL,
  $hidden3_value = NULL,
  $hidden4_name = NULL,
  $hidden4_value = NULL 
)

makes a

... with a form

private

Parameters
classstring class (optional)
alignstring align (optional)
stylestring style (optional)
actionstring action of the form (optional)
button_namename string of the button (optional)
button_tooltipstring tooptip for the button (optional)
hidden1_namestring name of hidden button1 (optinal)
hidden1_valuestring value of hidden button1 (optinal)
hidden2_namestring name of hidden button2 (optinal)
hidden2_valuestring value of hidden button2 (optinal)
hidden3_namestring name of hidden button3 (optinal)
hidden3_valuestring value of hidden button3 (optinal)
Returns
string a string with a table-data-cell and a form

Here is the call graph for this function:

Here is the caller graph for this function:

makeTableDataCellLink (   $username,
  $text = "&nbsp;",
  $class = "steel1",
  $align = "center",
  $width = "5%",
  $colspan = "1" 
)

makes a

...</t> line mit a link private

Parameters
textstring The Text to display or 'blindgif' (optional)
classstring class (optional)
alignstring align (optional)
widthstring width (optional)
Returns
string a string with a table-head

Here is the caller graph for this function:

makeTableHeaderCell (   $text = "&nbsp;",
  $width = "5%",
  $align = "center",
  $colspan = "1" 
)

Here is the caller graph for this function:

printSafeguard (   $sign,
  $text,
  $mode = NULL,
  $voteID = NULL,
  $showrangeID = NULL,
  $referer = NULL 
)

displays the 'Safeguard'

private

Parameters
signstring Sign to draw (must be "ok" or "ausruf")
textstring The Text to draw
voteIDstring needed if you want to delete a vote (not needed)

Here is the call graph for this function:

Here is the caller graph for this function:

printSearchResults (   $rangeAR,
  $searchString 
)

Here is the call graph for this function:

printSelections (   $range,
  $sarchRange = "",
  $safeguard = NULL 
)

displays the options to create new votes and tests and the display filter

private

Parameters
$rangearray An array with alle accessable rangeIDs [0] and the titles [1]
$sarchRangestring The ID of the range to display

Here is the call graph for this function:

printSiteTitle ( )

displays the title bar

private

printVoteTable (   $mode,
  $votes = NULL,
  $openID = NULL 
)

displays the Votes in a table

private

Parameters
modestring could be 'new', 'active', 'stopped' or 'start_table', 'end_table'
votesarray an array with all the data (optional)
openIDstring display the results of this voteID (optional)

Here is the call graph for this function: