Stud.IP  jlu_3.3 Revision
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="table_row_even", $align="center", $width="5%", $colspan="1")
 
 makeTableDataCellLink ($username, $text=" ", $class="table_row_even", $align="center", $width="5%", $colspan="1")
 
 makeTableDataCellForm ( $displayclass="table_row_even", $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)
 
 makeCopyVoteSelectForm ($action)
 

Function Documentation

◆ makeArrow()

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

makes a makeSelectForm @access private

Returns
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeCopyVoteSelectForm()

makeCopyVoteSelectForm (   $action)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeDisplaySelectForm()

makeDisplaySelectForm (   $action)

makes a makeSelectForm @access private

Parameters

param

Parameters

param

Returns
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeNewVoteSelectForm()

makeNewVoteSelectForm (   $action)

makes a makeSelectForm @access private

Parameters

param

Parameters

param

Returns
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeSearchForm()

makeSearchForm ( )

makes a makeSelectForm @access private

Returns
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeTableDataCell()

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

makes a

...</t> line @access 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 call graph for this function:
Here is the caller graph for this function:

◆ makeTableDataCellForm()

makeTableDataCellForm (   $displayclass = "table_row_even",
  $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

@access 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()

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

makes a

...</t> line mit a link @access 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()

makeTableHeaderCell (   $text = "&nbsp;",
  $width = "5%",
  $align = "center",
  $colspan = "1" 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printSafeguard()

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

displays the 'Safeguard'

@access 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()

printSearchResults (   $rangeAR,
  $searchString 
)
Here is the call graph for this function:

◆ printSelections()

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

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

@access 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()

printSiteTitle ( )

displays the title bar

@access private

◆ printVoteTable()

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

displays the Votes in a table

@access 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: