Add option to enable keypad (in most cases, we don't need this).
This commit is contained in:
parent
e2790895ad
commit
722847cbe6
@ -15,8 +15,17 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return a string to outptu a keypad
|
||||||
|
*
|
||||||
|
* @param string $keypadname Key pad name
|
||||||
|
* @param string $formname Form name
|
||||||
|
* @return string HTML code to show a js keypad.
|
||||||
|
*/
|
||||||
function genkeypad($keypadname, $formname)
|
function genkeypad($keypadname, $formname)
|
||||||
{
|
{
|
||||||
|
if (empty($conf->global->CASHDESK_SHOW_KEYPAD)) return '';
|
||||||
|
|
||||||
// défine the font size of button
|
// défine the font size of button
|
||||||
$btnsize=32;
|
$btnsize=32;
|
||||||
$sz='<input type="button" id="closekeypad'.$keypadname.'" value="X" style="display:none;" onclick="closekeypad(\''.$keypadname.'\')"/>'."\n";
|
$sz='<input type="button" id="closekeypad'.$keypadname.'" value="X" style="display:none;" onclick="closekeypad(\''.$keypadname.'\')"/>'."\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user