Hi,
One more tweek.
Add new item directly from home page.
Code:
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.
Mod to add new items directly from Home Page
-
- AppGini Super Hero
- Posts: 85
- Joined: 2014-06-14 03:08
- Location: India
- Contact:
Re: Mod to add new items directly from Home Page
Well done, Uday! Thank you a lot
AppGini plugins to add more power to your apps:
- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
-
- Posts: 4
- Joined: 2014-10-13 08:21
Re: Mod to add new items directly from Home Page
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"
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
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...
?>
<?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...
?>