[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/js/ -> functions.js (sommaire)

(pas de description)

Poids: 1214 lignes (41 kb)
Inclus ou requis:0 fois
Référencé: 2 fois
Nécessite: 0 fichiers

Définit 28 fonctions

  selectContent()
  confirmLinkDropDB()
  confirmLink()
  confirmAction()
  confirmQuery()
  checkSqlQuery()
  emptyCheckTheField()
  emptyFormElements()
  checkFormElementInRange()
  checkTableEditForm()
  checkTransmitDump()
  PMA_markRowsInit()
  markAllRows()
  unMarkAllRows()
  setPointer()
  setVerticalPointer()
  setCheckboxes()
  copyCheckboxesRange()
  setCheckboxColumn()
  setSelectOptions()
  insertValueQuery()
  goToUrl()
  getElement()
  refreshDragOption()
  refreshLayout()
  ToggleDragDrop()
  dragPlace()
  pdfPaperSize()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

selectContent( element, lock, only_once )   X-Ref
selects the content of a given object, f.e. a textarea

param: object  element     element of which the content will be selected
param: var     lock        variable which holds the lock for this element
param: boolean only_once   if true this is only done once

confirmLinkDropDB(theLink, theSqlQuery)   X-Ref
Displays an confirmation box before to submit a "DROP DATABASE" query.
This function is called while clicking links

param: object   the link
param: object   the sql query to submit
return: boolean  whether to run the query or not

confirmLink(theLink, theSqlQuery)   X-Ref
Displays an confirmation box before to submit a "DROP/DELETE/ALTER" query.
This function is called while clicking links

param: object   the link
param: object   the sql query to submit
return: boolean  whether to run the query or not

confirmAction(theMessage)   X-Ref
Displays an confirmation box before doing some action

param: object   the message to display
return: boolean  whether to run the query or not

confirmQuery(theForm1, sqlQuery1)   X-Ref
Displays an error message if a "DROP DATABASE" statement is submitted
while it isn't allowed, else confirms a "DROP/DELETE/ALTER" query before
sumitting it if required.
This function is called by the 'checkSqlQuery()' js function.

param: object   the form
param: object   the sql query textarea
return: boolean  whether to run the query or not

checkSqlQuery(theForm)   X-Ref
Displays an error message if the user submitted the sql query form with no
sql query, else checks for "DROP/DELETE/ALTER" statements

param: object   the form
return: boolean  always false

emptyCheckTheField(theForm, theFieldName)   X-Ref
Check if a form's element is empty
should be

param: object   the form
param: string   the name of the form field to put the focus on
return: boolean  whether the form field is empty or not

emptyFormElements(theForm, theFieldName)   X-Ref
Displays an error message if an element of a form hasn't been completed and
should be

param: object   the form
param: string   the name of the form field to put the focus on
return: boolean  whether the form field is empty or not

checkFormElementInRange(theForm, theFieldName, message, min, max)   X-Ref
Ensures a value submitted in a form is numeric and is in a range

param: object   the form
param: string   the name of the form field to check
param: integer  the minimum authorized value
param: integer  the maximum authorized value
return: boolean  whether a valid number has been submitted or not

checkTableEditForm(theForm, fieldsCnt)   X-Ref
Pas de description

checkTransmitDump(theForm, theAction)   X-Ref
Ensures the choice between 'transmit', 'zipped', 'gzipped' and 'bzipped'
checkboxes is consistant

param: object   the form
param: string   a code for the action that causes this function to be run
return: boolean  always true

PMA_markRowsInit()   X-Ref
enables highlight and marking of rows in data tables


markAllRows( container_id )   X-Ref
marks all rows and selects its first checkbox inside the given element
the given element is usaly a table or a div containing the table or tables

param: container    DOM element

unMarkAllRows( container_id )   X-Ref
marks all rows and selects its first checkbox inside the given element
the given element is usaly a table or a div containing the table or tables

param: container    DOM element

setPointer(theRow, theRowNum, theAction, theDefaultColor, thePointerColor, theMarkColor)   X-Ref
Sets/unsets the pointer and marker in browse mode

param: object    the table row
param: integer  the row number
param: string    the action calling this script (over, out or click)
param: string    the default background color
param: string    the color to use for mouseover
param: string    the color to use for marking a row
return: boolean  whether pointer is set or not

setVerticalPointer(theRow, theColNum, theAction, theDefaultClass1, theDefaultClass2, thePointerClass, theMarkClass)   X-Ref
Pas de description

setCheckboxes( container_id, state )   X-Ref
Checks/unchecks all checkbox in given conainer (f.e. a form, fieldset or div)

param: string   container_id  the container id
param: boolean  state         new value for checkbox (true or false)
return: boolean  always true

copyCheckboxesRange(the_form, the_name, the_clicked)   X-Ref
Pas de description

setCheckboxColumn(theCheckbox)   X-Ref
Pas de description

setSelectOptions(the_form, the_select, do_check)   X-Ref
Checks/unchecks all options of a <select> element

param: string   the form name
param: string   the element name
param: boolean  whether to check or to uncheck the element
return: boolean  always true

insertValueQuery()   X-Ref
Inserts multiple fields.


goToUrl(selObj, goToLocation)   X-Ref
listbox redirection


getElement(e,f)   X-Ref
getElement


refreshDragOption(e)   X-Ref
Refresh the WYSIWYG-PDF scratchboard after changes have been made


refreshLayout()   X-Ref
Refresh/resize the WYSIWYG-PDF scratchboard


ToggleDragDrop(e)   X-Ref
Show/hide the WYSIWYG-PDF scratchboard


dragPlace(no, axis, value)   X-Ref
PDF scratchboard: When a position is entered manually, update
the fields inside the scratchboard.


pdfPaperSize(format, axis)   X-Ref
Returns paper sizes for a given format




Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics