Page 1 of 1

Mod to add new items directly from Home Page

Posted: 2014-11-01 13:44
by udayvatturi
Hi,
One more tweek.

Add new item directly from home page.
Capture.PNG
Capture.PNG (169.33 KiB) Viewed 8272 times
Code:
home.zip
(1.6 KiB) Downloaded 570 times
Give me some idea of the mods that you need I will try to develop them.
You will mostly get them for free like this or i will put the least price possible.

Re: Mod to add new items directly from Home Page

Posted: 2014-11-03 10:49
by a.gneady
Well done, Uday! Thank you a lot :)

Re: Mod to add new items directly from Home Page

Posted: 2014-11-05 08:36
by emad.mohamed
Good Job

Re: Mod to add new items directly from Home Page

Posted: 2015-03-05 16:11
by pilandros
Nice script Uday,
I would like to suggest the following code to make it better:

<?php
$arrPerm = getTablePermissions($tn);
if ($arrPerm["insert"]){
$Link="href='".$tn."_view.php?addNew_x=1' title='Add new record'";
echo "<a class='glyphicon glyphicon-plus-sign' $Link></a> Add</a><br>";
}// if ($arrPerm...
?>

this way, only users with "insert" permission to the table $tn may seen the "Add link"

Re: Mod to add new items directly from Home Page

Posted: 2015-03-05 16:23
by pilandros
Sorry, prior code had a problem, the followig code has that problem fixed.

<?php
$arrPerm = getTablePermissions($tn);
if ($arrPerm["insert"]){
$Link="href='".$tn."_view.php?addNew_x=1' title='Add new record'";
echo "<a class='glyphicon glyphicon-plus-sign' $Link></a><a $Link> Add</a><br>";
}// if ($arrPerm...
?>