Quantcast
Channel: ASPRunner forums
Viewing all 2586 articles
Browse latest View live

How to implement hierarchical users

$
0
0
Hi Guys,
I appreciate it if someone could help me solve this problem.

I want to implement hierarchical users, here are my requirements:
1. Child user can only access their record,
2. parent users can access the records owned by their child.
3. Parent User is hierarchical, until five levels


Question:
1. How to design the tables (fields and relations)?
2. Please, give me an idea or steps to implement this using phprunner?


I'm using PHPRunner Enterprise Edition 10.3 and database Mysql.

Thank you in advance.
Facun

Picture slider

$
0
0
I have a field that has up to 4 picture in it for the record. In list and view , is there a way to make the thumbnail slide and just display one picture that is clickaable at a time and zoom picuture in this field?

So far all I can get are static thumbnails .. I could really use some direction or insperation on this one. Not sure how to approach this.


Thanks in advance :)

Security API:currentUserData

$
0
0
I am trying to get values from a user table to be added to field-based current user. So I was testing by currentUserData API.

$userData = Security::currentUserData();
print_r($userData );


Array ( [ID] => 139 [username] => Aaron Easton [password] => xxxxxxx [email] => aaron.easton@m1services.com [fullname] => Aaron Lee Easton [groupid] => -2 [active] => 1 [Region] => TX [Location] => [Postion] => Site Supervisor [Company] => M1 Support Services [active1] => [reset_token] => pl4f9aopuvs7tad3m30f [reset_date] => 2019-06-19 00:00:00 [lastaccess] => 2019-08-22 00:00:00 [LocationID] => 1,2,3,4,5,6,7,8,10,11,12,13,16,17,18,19,20,24,27 [SingleLocationID] => [Program] => [PrPrefix] => [PoPrefix] => [Orgid] => )



It Returns this and I would like to get the values [SingleLocationID] => [Program] => [PrPrefix] => [PoPrefix] => [Orgid] =>

Additional Pages - Properties Field Events

$
0
0
Is it possible to have a field event on one edit page and not the other ?
For example , I am trying to make a field disable on first edit page and enable editing on second edit page.

Any Ideas , When I try to use a field event - field editing to disable it also carries over to the second edit page where I want to be able to enable editing text field.

Do I need to make a custom view like we used to ?

hide look up wizard check boxes if not record

$
0
0
Hi All,
I create a list of check boxes with lookup wizard and i want to hide it including the label if is empty or not values associated
i try pageobject.hideField ("Field 3") plain and works on onload javascript but i dont know how to make the if empty part

please help

in place editing

$
0
0
I am working with Phprunner 9.8 build 31882 x64

I have a Microsoft access .mdb as database to which I connect.
I want to implement this example here : https://xlinesoft.co...-place-editing/
Though the" in place editing" functions well with "text" fields , it does not - for my project - with "checkboxes" ?
Is the initial example meant to also function with "checkbox" fields too ?
If not, can it be adapted ? how ?
many thanks.

Edited : my project page style is "bootstrap".

Cannot delete iframe from code

$
0
0
Hi,
I'm having a somewhat baffling problem. Some time ago, I added an iframe to a login page to put a Google Adsense ad into it. It turns out this is not OK with Google because the login page does not have content. So, now I'm trying to remove the iframe. Here's the problem:
1. There is no iframe in the code editor for the page, so I can't delete it (because it isn't there).
2. When I build my project, the iframe still appears in the output even though it does not exist in the actual code. It was originally in the footer but I reset the footer so nothing is there. Nevertheless, it still appears on my site after building and uploading.

I can't figure out why it is appearing when I build the page but is absent from the code in the editor. Here is the code in the editor by the way:

<!DOCTYPE html>
<HTML {$html_attrs}>
<HEAD>
<META http-equiv="X-UA-Compatible" content="IE=Edge">
<TITLE>
{$pagetitle}
</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK href="styles/default.css" rel="stylesheet" type="text/css">
{BEGIN rtlCSS}
<LINK href="styles/defaultRTL.css" rel="stylesheet" type="text/css">
{END rtlCSS}
{BEGIN styleCSSFiles}
<LINK href="{$stylepath}" rel="stylesheet" type="text/css">
{END styleCSSFiles}
{BEGIN pageCSSFiles}
<LINK href="{$pagestylepath}" rel="stylesheet" type="text/css">
{END pageCSSFiles}
<META name="GENERATOR" content="MSHTML 11.00.10570.1001">
</HEAD>
<BODY class="{$stylename} function-login" {$bodyattrs}>
{BEGIN body}
{$header}
<DIV class="rnr-page">
<DIV class="rnr-top {$blockclass_top}">
{BEGIN container_login}
<DIV class="rnr-c rnr-cv rnr-c-login" style="min-height: 0px; min-width: 598px;">
{BEGIN loginheader}
<DIV class="rnr-brickcontents style2 rnr-b-loginheader {$brickclass_loginheader}">
<SPAN>
<H1>
{$pagetitlelabel login}
</H1>
</SPAN>
</DIV>
{END loginheader}
{BEGIN message_block}
<DIV class="rnr-brickcontents style1 rnr-b-message {$brickclass_message}">
<DIV class="rnr-message">
{$message}
</DIV>
</DIV>
{END message_block}
<DIV class="rnr-brickcontents style1 rnr-b-wrapper {$wrapperclass_fields} rnr-wrapper rnr-cbw-fields">
{BEGIN container_fields}
<DIV class="rnr-c rnr-cv rnr-c-fields" style="min-height: 133px; min-width: 590px;">
<DIV class="rnr-brickcontents style1 rnr-b-loginfields {$brickclass_loginfields}">
<TABLE class="fieldGrid">
<TBODY>
<TR style="height: 38px;">
<TD>
{BEGIN username_label}
E-mail:
{END username_label}
</TD>
<TD class="rnr-control">
<INPUT name="username" style="width: 307px; height: 22px;" type="text" size="21" {$username_attrs}>
</TD>
</TR>
<TR>
<TD>
{BEGIN password_label}
Password:
{END password_label}
</TD>
<TD class="rnr-control">
<INPUT name="password" style="width: 306px; height: 22px;" type="password" size="1" {$password_attrs}>
</TD>
</TR>
<TR>
<TD>
{BEGIN remember_password_label}
Remember Password:
{END remember_password_label}
</TD>
<TD>
<INPUT type="checkbox" {$rememberbox_attrs}>
</TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<STRONG></STRONG>
<DIV class="rnr-brickcontents style3 rnr-b-mesreg {$brickclass_mesreg}">
<A href="register.php" {$registerlink_attrs}>
<FONT size="4"><STRONG>Click Here to Register</STRONG></FONT>
</A>
<FONT size="4"><STRONG></STRONG></FONT>
</DIV>
<DIV class="rnr-brickcontents style3 rnr-b-mesforgot {$brickclass_mesforgot}">
<A href="remind.php" {$forgotpasswordlink_attrs}>
<FONT
size="3">Forgot password?</FONT>
</A>
</DIV>
{BEGIN loginbuttons}
<DIV class="rnr-brickcontents style2 rnr-b-loginbuttons {$brickclass_loginbuttons}">
<A class="rnr-button main" href="#" {$loginlink_attrs}>
Submit
</A>
{BEGIN continue_button}
<A class="rnr-button" href="#" {$continuebutton_attrs}>
Continue
</A>
{END continue_button}
</DIV>
{END loginbuttons}
</DIV>
{END container_fields}
</DIV>
</DIV>
{END container_login}
</DIV>
<DIV class="rnr-middle">
<DIV class="rnr-left {$blockclass_left}">
</DIV>
<DIV class="rnr-center {$blockclass_center}">
</DIV>
<DIV class="rnr-right {$blockclass_right}">
</DIV>
</DIV>
<DIV class="rnr-bottom {$blockclass_bottom}">
&lt!--%%bottom%%-->
</DIV>
</DIV>
{$footer}
{END body}
</BODY>
</HTML>


Even though there is no iframe with Google ads that I can find, the following still appears on my login page:

<iframe id="google_ads_frame1" name="google_ads_frame1" sandbox="allow-forms allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" width="728" height="90" frameborder="0" src="https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-1279252804139334&output=html&h=90&slotname=1873299786&adk=2842612394&adf=1047090749&w=728&lmt=1571837744&guci=2.2.0.0.2.2.0.0&format=728x90&url=https%3A%2F%2Fquizninja.net%2Fphprunnerquizninja%2Flogin.php&flash=0&wgl=1&dt=1571837744063&bpp=37&bdt=238&fdt=126&idt=127&shv=r20191015&cbv=r20190131&saldr=aa&correlator=7338802033997&frm=21&ife=1&pv=2&ga_vid=839125810.1571834861&ga_sid=1571837744&ga_hid=1559082029&ga_fc=0&iag=3&icsg=64507&nhd=1&dssz=12&mdo=0&mso=0&u_tz=-420&u_his=4&u_java=0&u_h=864&u_w=1536&u_ah=824&u_aw=1536&u_cd=24&u_nplug=3&u_nmime=4&adx=392&ady=366&biw=1518&bih=420&isw=1502&ish=382&ifk=4005778927&scr_x=0&scr_y=0&eid=20199337%2C21064785&oid=3&pvsid=2333022090457484&pem=128&ref=https%3A%2F%2Fquizninja.net%2Fteacherstart.html&top=https%3A%2F%2Fquizninja.net%2Fteacherpage.html&rx=0&eae=0&fc=640&brdim=0%2C0%2C0%2C0%2C1536%2C0%2C1532%2C824%2C1518%2C382&vis=1&rsz=%7C%7CeE%7C&abl=CS&pfx=0&fu=1044&bc=31&ifi=1&uci=1.g16fketix9k2&fsb=1&xpc=P6TGnkQ5ss&p=https%3A//quizninja.net&dtd=183" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" data-google-container-id="1.g16fketix9k2" data-google-query-id="CMLDv_i_suUCFYwYrQYd2U4JOw" data-load-complete="true"></iframe>

I can't figure out how to get rid of it. Any ideas? By the way here's the URL for the page where this occurs: https://quizninja.net/teacherpage.html Thanks,
Brett

Banner insertion into rows

$
0
0
https://asprunner.com/forums/topic/21866-how-to-insert-a-banner-ad-between-records-on-the-list-page/page__hl__banner__fromsearch__1

Thread above talks about v5, v6 and v7 PHPR versions, and HTML editor code injections. Before running trials, my question is:

Is there now, under PHPR 10.3 something better at hand? I'm opting to upload 55.458 airports records into the cloud with focus
on advertising clients in the US and Canada in the small airports (14,697 small airports in total arena) and best would be if
more than just one advertising banner could be rotated wihtin the rows, just in case, it would be possible..., thx 4 hints.

[SOLVED] Output Build to Website server

$
0
0
I have my project running nicely on my domain, let's say it's mysql.mydomain.com and the username is: admin1 and the password: abc123 and those credentials are represented on the ouput page down in the server database connection box. I make some changes in the project's design, but I want the build to output directly up to the domain instead of locally and then manually having to FTP upload (which works fine by the way). What are the syntax terms I use in the output folder and local preview boxes to accomplish a direct upload and also view what I have sent online?

OOOPS ... topic already solved.

Randy J

Structure of Data

$
0
0
Hi everyone,

May I ask if this way of doing the table is possible?

Example:

I have 3 tables:

Mobile
Phone
Email
All 3 tables only have 1 field each and that field is the primary key to prevent duplication


I have another table called Customer. In this table:

Name
Mobile
Phone
Email
Remarks

Question:
Is it possible that in the Customer (ADD Menu), I can type in Name, Mobile, Phone, Email and Remarks.

The unique thing is that when I key in Mobile, Phone and Email in this screen, these data get saved in to Mobile Table, Phone Table and Email Table respectively. This is to prevent duplication. Also while I type in these 3 fields, it can autocomplete if there is a match.

Appreciate if someone can point me in the right direction.

Thank you

PHPR 10.3 bug

$
0
0
I tried to modify the query in the "Export page: Before SQL query" event with a simple:
$strSQL = "SELECT myField FROM myTable";

But it doesn't work. It works perfectly in the list page event

[SOLVED] List of Values for a lookup field

$
0
0
Is there a method that I can have a predefined value list, but also allow the users to add to it on the fly similar to the Database Table option?

Display one photo intrinsic size

$
0
0
This should be so simple but I can't make it work for some reason. See this page: https://dna.fcps.net/veterans/honorgallery/view?editid1=7

The photo is in a File/Image upload. I want it to display at its intrinsic size which in this case happens to be 319x500, but it's getting stretched on larger monitors. How can I force it to not stretch beyond its actual size? The Documentation for the View as settings are confusing, with all the stuff about multiple images and thumbnails. I have tried different settings and nothing seems to work to just display the one image at its natural size.

[SOLVED] How To Eliminate Remember Me Checkbox

$
0
0
Hi all!

I am unhappy with the "remember me" checkbox on any login screen. I find that it creates a cookie in Chrome that has to be deleted to log out a user between uses. Not the same at all as letting chrome store the username and password. I just as soon go without the "remember me" checkbox it. Could you show me which php code in which file to disable with "//" to accomplish that? Thanks ahead of time!

Randy J

Date Timezone Setting Error

$
0
0
Hi,

I've created a new project in PHP Runner and i'm getting the below error when trying to access the project via my web hosting. Any ideas how to fix this?

Warning: trigger_error(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in Webserver/connections/Connection.php on line 611

Fatal error: Access denied for user

Thanks in advanced

add new inlineadd after insert a number without press any buttons

$
0
0
Hi Guys,

have a new project and need some help.

It is a Scannerapplikation and i want to scan multiple codes without interrution like press a button via mouse or keyboard.
my logic now was: after i scan one Code - that maybe need via a millisecond delay, javascript press automaticly the inline add button for a new line.

So what for a code i must write down into - maybe Javascript onload event?

So that i can scan as an example 10 codes without any interruption from the pallet and after that - i scan a "save" code to save this numbers.

Thank you guys in advance.

Kay.

code snippet

$
0
0
I have a dashboard with various tables and would like to add a code snippet that has a refers to one of those tables.

Table A

row1
row2


I would like to add a snippet that gives me row2 where row1 is the one in focus in the table.

Any help would be welcome

If statement syntax help

$
0
0
I have the 2 If statements below added to the "After Record Update" section of my project, but both seem to execute if either one is true and I am not certain on ending the statements properly.

if ($values["Date_Completed"]!=$oldvalues["Date_Completed"]) {
//********** Send email with new data ************

$email=$values['Requestor_Email'];
$from="my.email@greececsd.org";
$msg="The request you submitted below has been completed"."\r\n\n";
$subject="We have completed Courier Request number".$values['Request_Number'];


$msg.= "Request Number: ".$values['Request_Number']."\r\n";
$msg.= "Customer: ".$values['Requestor_Name']."\r\n";
$msg.= "Customers Email: ".$values['Requestor_Email']."\r\n";
$msg.= "Latest Pickup Date: ".$values['Latest_Pickup_Date']."\r\n";
$msg.= "Date Completed: ".$values['Date_Completed']."\r\n";
$msg.= "Completed by: ".$values['Completed_By']."\r\n";
$msg.= "Pickup from: ".$values['Pickup_Location']."\r\n";
$msg.= "Deliver to: ".$values['Destination_Location']."\r\n";
$msg.= "Request: ".$values['Details']."\r\n";

$ret=runner_mail(array('to' => $email, 'bcc' => 'my.email@greececsd.org', 'subject' => $subject, 'body' => $msg, 'from'=>$from));
if(!$ret["mailed"])
echo $ret["message"];

}


if ($values["Custodial_Email"]!=$oldvalues["Custodial_Email"]) {

//********** Send email with new data ************

$email=$values['Custodial_Email'];
$from="my.email@greececsd.org";
$subject="Central Stores is requesting your assistance";

$msg.= "Are you able to assist Central Stores with the following. "."\r\n\n";
$msg.= $values['Custodial_Notes']."\r\n";
$msg.= "Request Number: ".$values['Request_Number']."\r\n";
$msg.= "Customer: ".$values['Requestor_Name']."\r\n";
$msg.= "Latest Pickup Date: ".$values['Latest_Pickup_Date']."\r\n";
$msg.= "Pickup from: ".$values['Pickup_Location']."\r\n";
$msg.= "Deliver to: ".$values['Destination_Location']."\r\n";
$msg.= "Request: ".$values['Details']."\r\n";

$ret=runner_mail(array('to' => $email, 'bcc' => 'my.email@greececsd.org', 'subject' => $subject, 'body' => $msg, 'from'=>$from));
if(!$ret["mailed"])
echo $ret["message"];

}

// Place event code here.
// Use "Add Action" button to add code snippets.

DIalog API

$
0
0
Is it possible to use field type select in dialog api to choose from a list?
If is possible how to fill values?

Details View

$
0
0
Does anyone have any idea why when viewing a table and its details view in a list page, not all details show.

Example: I have a Jobs table and its detail tables is Items.
When viewing the Jobs List View, then selecting to view Items, not all Items show.

Say a job has 4 items... only 2 show in the details.

If I go to the Items list view - they all show if I search for a Job # or filter on a job # all show as expected.

But from the Job table list view, selecting details only show 2 of the 4 items. There is nothing different about the items, no
filter settings, Job numbers are identical.

It is as if the SQL to show the details had a LIMIT = 2 for this job, but there is nowhere to set a limit ?

Any ideas would be appreciated. (PHPRunner version 10.3)

Thanks.
Steve
Viewing all 2586 articles
Browse latest View live