Mod to add new items directly from Home Page

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
udayvatturi
AppGini Super Hero
AppGini Super Hero
Posts: 85
Joined: 2014-06-14 03:08
Location: India
Contact:

Mod to add new items directly from Home Page

Post by udayvatturi » 2014-11-01 13:44

Hi,
One more tweek.

Add new item directly from home page.
Capture.PNG
Capture.PNG (169.33 KiB) Viewed 6540 times
Code:
home.zip
(1.6 KiB) Downloaded 433 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.

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: Mod to add new items directly from Home Page

Post by a.gneady » 2014-11-03 10:49

Well done, Uday! Thank you a lot :)
:idea: 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.

emad.mohamed
Posts: 4
Joined: 2014-10-13 08:21

Re: Mod to add new items directly from Home Page

Post by emad.mohamed » 2014-11-05 08:36

Good Job

User avatar
pilandros
Veteran Member
Posts: 93
Joined: 2014-02-13 18:19

Re: Mod to add new items directly from Home Page

Post by pilandros » 2015-03-05 16:11

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"

User avatar
pilandros
Veteran Member
Posts: 93
Joined: 2014-02-13 18:19

Re: Mod to add new items directly from Home Page

Post by pilandros » 2015-03-05 16:23

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...
?>

Post Reply