Specific Row_ID's of a dataset, scattered on a page.

this seems like such an elementary question, but i just can't figure it out.
i have an HTML dataset (ds1), which has several rows to it.
and i have a spry region defined on my page (but not a repeating region).
within that region, i want to specifically code to have ds_RowID[0]'s {title} content in a spot on the page.
then i want to specifically code to have ds_RowID[1]'s {title} content in another spot on the page.
and so on with row3, row 4, etc.
all coming from the same dataset (ds1), just coded manually (instead of a repeat region), so i can position each of them individually.
the reason they are not done programmatically via repeatregion is because it's designed to be lined up into columns, 4 across, and then drop down and repeat to another row of columns.
How do i specify the particular "ds_RowID[1] {title}"? Tried looking online, but still couldn't find such a simple solution.
Thanks so much for your help.

thanks arnout.
but i'm still not sure that is going to do what i need.
i'm looking to have just one field (the {title} field) of each row in the table displayed, but all at the same time, showing by default in columns on my HTML page.
so my compiled spry region would be something like this:
>{title} from ds_RowID(0)          >{title} from ds_RowID(1)          >{title} from ds_RowID(2)
>{title} from ds_RowID(3)          >{title} from ds_RowID(4)          >{title} from ds_RowID(5)
>{title} from ds_RowID(6)          >{title} from ds_RowID(7)          >{title} from ds_RowID(8)
>{title} from ds_RowID(9)          >{title} from ds_RowID(10)        >{title} from ds_RowID(11)
basically just pulling in one field from my dataset, but done for every row. my problem seems to be that i can't use repeating regions because i need to have the wrapping HTML code show it in columns, so i'd have the first column probably within a <div class="firstcol"> and the next within a <div class="secondcol"> etc.
so if I have just one dataset (ds1), how do I tell it to grab the {title} from a specific row?

Similar Messages

  • Writing the file to a specific directory on server using DATASET

    Hello Friends
    I know that using dataset command we can create a file, write to a file, read from a file etc.,
    But by default it uses the directory DIR_SAPUSERS which is the ./ directory.
    But this particular directory DIR_SAPUSERS also has other system related log files etc.,
    Is there a way to make the command DATASET write to a user created directory instead of this ./ ??
    Any suggestions or comments will be highly appreciated.
    Thanks
    Ram

    IF NOT p_ufile IS INITIAL.
    OPEN DATASET p_ufile FOR INPUT IN TEXT MODE.
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    here p_ufile will contain the path where ever u need to place the file i.e. use specific path.... ex: "usr/sap/bin/interface"

  • Can I link to specific items in a Spry dataset?

    I have a website for a community festival.  I'm using a spry dataset for the festival events http://www.horizonfest.co.uk/programme/events.html .  Visitors click on an event in the left hand column and it appears on the right.
    The festival programme is on this page: http://www.horizonfest.co.uk/programme/sitemap.html .  If you scroll down to for example the evening event on 16 July, it will take you to the events page (first link above).  My clients would like it to open the event for 16 July on the events page (and similarly for any event).  At the moment visitors have to scroll down and open the event themselves.
    I have tried putting an anchor in the 16 July data item.  I am not surprised it doesn't work because the anchor is effectively on a different page.
    So, is there any way of doing this?  I'll be pleased if the answer is definitively 'no'.  I'll be delighted if there is a way of doing this.  If there isn't it may be something to look at in the future.
    I subscribe to creative cloud.
    Thank you
    Chris Sissons

    I'm sorry I don't have an answer for you other than to say it's a grim future for Spry.   Adobe abandoned the framework late last year with no plans for future development with it.
    Nancy O.

  • How to show an entry with specific ID from spry xml dataset?

    I have a spry xml dataset, can I show only one record
    specified by, say, unique ID?

    yeah, I first posted this one, then found out that my other
    message was replied:)

  • Each Row of one DataTable in a DataSet on a different page

    HI.
    I am making a report in Crystal Reports 2008.  And I am building a .NET program to push an Access DB to the report.
    I have a .NET DataTable object with my rows already in there merged into a .NET DataSet.
    Then, I added the DataSet to a .NET CrystalReport object, and show it in a Windows Form.
    I want each ROW of the Table to show on a different page. HOW?  So, each row is entitled to a page or a new page if the row outrun the page.
    Thank-you,
    Ajay Shah

    Hi Ajay,
    This is a report design question, the data source does not matter.
    I'm moving this post to the Designer forums.
    Thanks
    Don

  • I was on a specific site one evening and for some reason the page became VERY SMALL on the screen. No matter what I do I can't get that particular page to enlarge. HELP

    I was on the site pamperedchef.com. While I was on the page the information went from a full size page to a page approx 3x4 inches. I don't know how this happened but every time I try to log onto this site it comes up in that very small size.

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages

  • How to see if what a specific load process is doing?

    Hi all, having a little bit of a problem in that I have a load (not replication) job that seems to be hanging (not failing) but also not loading any data into HANA or not finishing.
    - Attempted to load table STXL in full, 440k or so rows loaded into HANA
    - Created an include for BOR event to filter all but 1 record, worked fine in about 3 minutes and 1 record present in HANA
    - Added additional code to decompress a compressed column format, code shown below. This was tested in a 'standalone' fashion as a program in an ECC system, so this is migrated to SLT as an include. In this case, the load job is just "hanging", it's not failing or not finishing. When I look in the monitor, can see it running for the last say 15 minutes "In Process".
    From here, no data ever makes it into HANA and the job in SLT doesn't seem to finish.
    How to diagnose where this is getting hung up or where the problem is? Normally if the code is bad, I would get a hard error in the application logs, which I don't get here.
    Code for include
    *&  Include           Z_TEST_IMPORT_TEXT
    types: begin of ty_stxl_raw,
             clustr type stxl-clustr,
             clustd type stxl-clustd,
           end of ty_stxl_raw.
    DATA: lt_stxl_raw type standard table of ty_stxl_raw,
          wa_stxl_raw type ty_stxl_raw,
          lt_tline type standard table of tline,
          wa_tline type tline.
    IF <WA_S_STXL>-TDNAME <> '0020874233'.
      SKIP_RECORD.
    ENDIF.
    clear  lt_tline[].
    wa_stxl_raw-clustr = <WA_S_STXL>-clustr.
    wa_stxl_raw-clustd = <WA_S_STXL>-clustd.
    append wa_stxl_raw to lt_stxl_raw.
    import tline = lt_tline from internal table lt_stxl_raw.
    READ TABLE lt_tline into wa_tline INDEX 1.
    <WA_R_STXL>-TEXT = wa_tline-tdline.

    Frank, awesome to hear you worked through the issues.
    Regarding DMC_STARTER, can you share how you were able to find the issue, specifically with such a large dataset, did you just step through until you hit a dump? When I referred to the documentation on debugging (that I had not yet created!), here is what I gathered just last week as a rough start. I'll probably repost this as a blog if you can confirm it is similar to your steps.
    - Ensure however you would like to test has already been started
    - For example if you want to test initial load, start the initial load and let it fail, and follow the steps below. When DMC_STARTER kicks up, it will start initial load again in debug.
    - If you want to test replication phase (picking up logging table records to process), get a table to replication status, stop the master job, then make a change in the source to log new entries in the logging table and follow the steps below. When DMC_STARTER kicks up, it will start in replication phase, picking up logging table records for processing.
    After the above is "set up" for testing, do the following, some of the functions will have different names based on your implementation.
    - SE38, DMC_STARTER
    - Use Migration Object Z_<TABLE_NAME>_<CONFIGURATION_ID>, Z_STXL_001 for example, access plan = 1, test mode = X
    - /h to enable debug
    - Find OLC function module call CALL FUNCTION olc_rto_ident, set breakpoint, continue to enter the FM
    - Enter 1CADMC/OLC_100000000000*, find CALL FUNCTION '/1CADMC/IL_100000000000769', set breakpoint, continue to enter the FM
    - Enter /1CADMC/IL_100000000000769, find PERFORM _BEGIN_OF_RECORD_0001_, set breakpoint, continue to enter
    - Enter PERFORM _RULE_BOR_C., the include code should be found here and you can step through.
    Regarding your issues discovered
    1) When I referred the code changes I need to tag on the other blog, I was referring to the following
    - Check for <WA_S_STXL>-SRTF2 = '0' to only grab the first line (as you mention)
    - The CLUSTR size as you mention is a helpful check.
    - Also need to put a check above the processing of the record to be able to handle DELETE's, else you'll get a short dump. When a deletion occurs, only the key columns are passed through this logic, and when we are working (importing) on a non-key field it will of course be empty and cause a dump.
    if <WA_S_STXL>-CLUSTD is not initial.
    *Put Source fields into internal table for IMPORT statement to work on, main logic here
    endif.
    2) The specific texts we were targeting would never be this large, they only consist of one single line so we never hit this issue. In the case you exceed 345 lines, are you just truncating the remainder?
    All in all, great stuff - good to see someone taking this concept further. If you want a deeper look into the folks who are doing much heavier text processing with additional logic (and much stronger ABAP'ers than I ), see Mass reading standard texts (STXH, STXL)
    Happy HANA!
    Justin

  • Can you specify spry:region to call a dataset dynamically?

    Hi. I am new to spry. I have a certain number of different datasets within 1 html page, let's say i have ds1, ds2, ds3 and so on..
    So the calling page now should have a drop down select menu that will enable the user to call on the appropriate dataset based on the selected option he did.
    Any idea? is this possible? I dont think filter will be good here since my data is coming from different datasets.. so i was thinking of having spry:region=whateverthevalueoftheuserhasselected.value. but for the intellisense i should specify a "specific" dataset name. but it should be a variable. please help!!! Thank You!!!

    Wow this is great! It working!!!! thanks for this! I'll post my solution for others' reference as well.
    The code below is my solution to switch to display 3 different datasets by user selection.
    Here's for the script in the <head>
    <script type="text/javascript">
    var testDS = new Spry.Data.HTMLDataSet("testsschedule.html", "test");
    var testDS2 = new Spry.Data.HTMLDataSet("testsschedule.html", "test2");
    var testDS3 = new Spry.Data.HTMLDataSet("testsschedule.html", "test3");
    var dsShell = new Spry.Data.DataSetShell(testDS);
    function ChangeDS(selectObject)
    var selectedValue = selectObject.options[selectObject.selectedIndex].value;
    switch(selectedValue)
    case "testDS":
               dsShell.setInternalDataSet(testDS, true);
              break;
    case "testDS2":
               dsShell.setInternalDataSet(testDS2, true);
              break;
    case "testDS3":
               dsShell.setInternalDataSet(testDS3, true);
              break;
              default:
              break;
    </script>
    Here's the select option code:
    <select name="selectCategory" id="selectCategory" onchange="ChangeDS(this)";>
    <option value="testDS">Option1</option>
    <option value="testDS2">Option2</option>
    <option value="testDS3">Option3</option>
    </select>
    And here's my div to display the dataset!
    <div id="liveTable" spry:region="dsShell" class="SpryHiddenRegion">
    <table border="1" class="dataTable">
       <tr>
         <th spry:sort="@id">@id</th>
         <th spry:sort="CourseName">CourseName</th>
         <th spry:sort="January">January</th>
         <th spry:sort="January">Februaru</th>
       </tr>
       <tr spry:repeat="dsShell">
         <td>{@id}</td>
         <td>{CourseName}</td>
         <td>{January}</td>
         <td>{Februaru}</td>
       </tr>
    </table>
    </div>
    Thanks big time gramps!!!

  • How do I count specific, smaller groups of information in one large table?

    Hello all,
    I have a feeling the answer to this is right under my nose, but somehow, it is evading me.
    I would like to be able to count how many photos are in any specific gallery. Why? Well, on my TOC page, I thought it would be cool to show  the user how many photos were in any given gallery displayed on the screen as part of all the gallery data I'm presenting. It's not necessary, but I believe it adds a nice touch. My  thought was to have one massive table containing all the photo information and another massive table containing the gallery  information, and currently I do. I can pull various gallery information  based on user selections, but accurately counting the correct number of  images per gallery is evading me.
    In my DB, I have the table, 'galleries', which has several columns, but the two most relevant are g_id and g_spe. g_id is the primary key and is an AI column that represents also the gallery 'serial' number. g_spec is a value that will have one of 11 different values in it (not relevant for this topic.)
    Additionally, there is the table, 'photos', and in this table are three columns:  p_id, g_id and p_fname. p_id is the primary key, g_id is the foreign key (primary key of the 'galleries' table) and p_fname contains the filename of each photo in my ever-expanding gallery.
    Here's the abbreviated contents of the galleries table showing only the first 2 columns:
    (`g_id`, `g_spec`, etc...)
    (1, 11, etc...),
    (2, 11, etc...),
    (3, 11, etc...),
    (4, 11, etc...),
    (5, 12, etc...),
    (6, 13, etc...)
    Here's the contents of my photos table so far, populated with test images:
    (`p_id`, `g_id`, `p_fname`)
    (1, 1, '1_DSC1155.jpg'),
    (2, 1, '1_DSC1199.jpg'),
    (3, 1, '1_DSC1243.jpg'),
    (4, 1, '1_DSC1332.jpg'),
    (5, 1, '1_DSC1381.jpg'),
    (6, 1, '1_DSC1421.jpg'),
    (7, 1, '1_DSC2097.jpg'),
    (8, 1, '1_DSC2158a.jpg'),
    (9, 1, '1_DSC2204a.jpg'),
    (10, 1, '1_DSC2416.jpg'),
    (11, 1, '1_DSC2639.jpg'),
    (12, 1, '1_DSC3768.jpg'),
    (13, 1, '1_DSC3809.jpg'),
    (14, 1, '1_DSC4226.jpg'),
    (15, 1, '1_DSC4257.jpg'),
    (16, 1, '1_DSC4525.jpg'),
    (17, 1, '1_DSC4549.jpg'),
    (18, 2, '2_DSC1155.jpg'),
    (19, 2, '2_DSC1199.jpg'),
    (20, 2, '2_DSC1243.jpg'),
    (21, 2, '2_DSC1332.jpg'),
    (22, 2, '2_DSC1381.jpg'),
    (23, 2, '2_DSC1421.jpg'),
    (24, 2, '2_DSC2097.jpg'),
    (25, 2, '2_DSC2158a.jpg'),
    (26, 2, '2_DSC2204a.jpg'),
    (27, 2, '2_DSC2416.jpg'),
    (28, 2, '2_DSC2639.jpg'),
    (29, 2, '2_DSC3768.jpg'),
    (30, 2, '2_DSC3809.jpg'),
    (31, 2, '2_DSC4226.jpg'),
    (32, 2, '2_DSC4257.jpg'),
    (33, 2, '2_DSC4525.jpg'),
    (34, 2, '2_DSC4549.jpg'),
    (35, 3, '3_DSC1155.jpg'),
    (36, 3, '3_DSC1199.jpg'),
    (37, 3, '3_DSC1243.jpg'),
    (38, 3, '3_DSC1332.jpg'),
    (39, 3, '3_DSC1381.jpg'),
    (40, 3, '3_DSC1421.jpg'),
    (41, 3, '3_DSC2097.jpg'),
    (42, 3, '3_DSC2158a.jpg'),
    (43, 3, '3_DSC2204a.jpg'),
    (44, 3, '3_DSC2416.jpg'),
    (45, 3, '3_DSC2639.jpg'),
    (46, 3, '3_DSC3768.jpg'),
    (47, 3, '3_DSC3809.jpg'),
    (48, 3, '3_DSC4226.jpg'),
    (49, 3, '3_DSC4257.jpg'),
    (50, 3, '3_DSC4525.jpg'),
    (51, 3, '3_DSC4549.jpg');
    For now, each gallery has 17 images which was just some random number I chose.
    I need to be able to write a query that says, tell me how many photos are in a specific photoset (in the photos table) based on the number in galleries.g_id  and photos.g_id being equal.
    As you see in the photos table, the p_id column is an AI column (call it photo serial numbers), and the g_id column assigns each specific photo to a specific gallery number that is equal to some gallery ID in the galleries.g_id table. SPECIFICALLY, for example I would want to have the query count the number of rows in the photos table whose g_id = 2 when referenced to g_id = 2 in the galleries table.
    I have been messing with different DISTINCT and COUNT methods, but all seem to be limited to working with just one table, and here, I need to reference two tables to acheive my result.
    Would this be better if each gallery had its own table?
    It should be so bloody simple, but it's just not clear.
    Please let me know if I have left out any key information, and thank you all in advance for your kind and generous help.
    Sincerely,
    wordman

    bregent,
    I got it!
    Here's the deal: the query that picks the subset of records:
    $conn = dbConnect('query');
    $sql = "SELECT *
            FROM galleries
            WHERE g_spec = '$spec%'
            ORDER BY g_id DESC
            LIMIT $startRow,".SHOWMAX;
    $result = $conn->query($sql) or die(mysqli_error());
    $galSpec = $result->fetch_assoc();
    picks 3 at a time, and with each record is an individual gallery number (g_id). So, I went down into my code where a do...while loop runs through the data, displaying the info for each subset of records and I added another query:
    $conn = dbConnect('query');
    $getTotal = "SELECT COUNT(*)
                FROM photos
                WHERE g_id = {$galSpec['g_id']}
                GROUP BY g_id";
    $total = $conn->query($getTotal);
    $row = $total->fetch_row();
    $totalPix = $row[0];
    which uses the value in $galSpec['g_id']. I didn't know the proper syntax for including it, but when I tried the curly braces, it worked. I altered the number of photos in each gallery in the photos table so that each total is different, and the results display perfectly.
    And as you can see, I used some of the code you suggested in the second query and all is well.
    Again, thank you so much for being patient and lending me your advice and assistance!
    Sincerely,
    wordman

  • How do I only allow SPECIFIC webpages the ability to refresh or redirect?

    Is there some way to have FIrefox only allow specific webpages the ability to reload or refresh a page? I already know of the
    Tools -> Advanced -> Warn me when webpages attempt to refresh or reload the page
    option. I am looking for the ability to only allow specific webpages, not ALL webpages.

    Without additional information on the addon, as the documentation provided is sorely lacking, this addon doesn't help much.
    Now if Firefox itself had a built-in whitelist / blacklist of pages allowed to redirect/refresh automatically, I'd be all for it.
    Appreciate the thought cor-el, but it doesn't help.

  • How to pass the userid to a page and have the page display dynamic data specific to user?

    I am developing a web app and can create a user ID log in page.  The app has a login page, view data page, and a post data page.  I want the user to be able to login and view the data unique to them they have posted.  Also from the view data page is a link to a post data page where they can post more data to be viewed.
    I have 2 tables in the database: one for "people" with a column for email.  ID and email are primary key.  The other table is "datapost" with a column name for email.  Id is primary key and email is a foreign key that references the 'person' table.
    After the user logs in they should go to view data and see their data, the page is going to view data, but it is not pulling up their specific data.  Below is the code for the pages:
    Can anyone point me to a resource where I can view some example code?  ( I tried to paste what I had in this messagae but it wouldn't paste and pages are on server yet to view.)  I have read ALMOST ALL of the Adobe tutorials and tech notes but no answer.

    I am using PHP and MySQL.  I'm using sessions.
    PHP from the login page:
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
    $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) :
    $theValue;
      $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
          break;
      return $theValue;
    $colname_statuserlogin = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $colname_statuserlogin = $_SESSION['MM_Username'];
    mysql_select_db($database_statprogram, $statprogram);
    $query_statuserlogin = sprintf("SELECT email, password FROM people WHERE
    email = %s", GetSQLValueString($colname_statuserlogin, "text"));
    $statuserlogin = mysql_query($query_statuserlogin, $statprogram) or
    die(mysql_error());
    $row_statuserlogin = mysql_fetch_assoc($statuserlogin);
    $totalRows_statuserlogin = mysql_num_rows($statuserlogin);
    $colname_statuserlogin = "-1";
    if (isset($_SERVER['email'])) {
      $colname_statuserlogin = $_SERVER['email'];
    mysql_select_db($database_statprogram, $statprogram);
    $query_statuserlogin = sprintf("SELECT email, password FROM people WHERE
    email = %s", GetSQLValueString($colname_statuserlogin, "text"));
    $statuserlogin = mysql_query($query_statuserlogin, $statprogram) or
    die(mysql_error());
    $row_statuserlogin = mysql_fetch_assoc($statuserlogin);
    mysql_select_db($database_statprogram, $statprogram);
    $query_statuserlogin = "SELECT * FROM datapost";
    $statuserlogin = mysql_query($query_statuserlogin, $statprogram) or
    die(mysql_error());
    $row_statuserlogin = mysql_fetch_assoc($statuserlogin);
    $totalRows_statuserlogin = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $totalRows_statuserlogin = $_SESSION['MM_Username'];
    $colname_statuserlogin = "-1";
    if (isset()) {
      $colname_statuserlogin = ;
    mysql_select_db($database_statprogram, $statprogram);
    $query_statuserlogin = sprintf("SELECT * FROM datapost WHERE email = %s",
    GetSQLValueString($colname_statuserlogin, "text"));
    $statuserlogin = mysql_query($query_statuserlogin, $statprogram) or
    die(mysql_error());
    $row_statuserlogin = mysql_fetch_assoc($statuserlogin);
    $query_statuserlogin = "SELECT email, password FROM people";
    $statuserlogin = mysql_query($query_statuserlogin, $statprogram) or
    die(mysql_error());
    $row_statuserlogin = mysql_fetch_assoc($statuserlogin);
    $totalRows_statuserlogin = mysql_num_rows($statuserlogin);
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['email'])) {
      $loginUsername=$_POST['email'];
      $password=$_POST['password'];
      $MM_fldUserAuthorization = "email";
      $MM_redirectLoginSuccess = "statfatviewdata.php";
      $MM_redirectLoginFailed = "statfatuserlogin.php";
      $MM_redirecttoReferrer = true;
      mysql_select_db($database_statprogram, $statprogram);
      $LoginRS__query=sprintf("SELECT email, password, email FROM people WHERE
    email=%s AND password=%s",
      GetSQLValueString($loginUsername, "text"), GetSQLValueString($password,
    "text"));
      $LoginRS = mysql_query($LoginRS__query, $statprogram) or
    die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
        $loginStrGroup  = mysql_result($LoginRS,0,'email');
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;
        if (isset($_SESSION['PrevUrl']) && true) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>
    PHP from the view data page:
    <?php
    //initialize the session
    if (!isset($_SESSION)) {
      session_start();
    // ** Logout the current user. **
    $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
    if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
      $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
      //to fully log out a visitor we need to clear the session varialbles
      $_SESSION['MM_Username'] = NULL;
      $_SESSION['MM_UserGroup'] = NULL;
      $_SESSION['PrevUrl'] = NULL;
      unset($_SESSION['MM_Username']);
      unset($_SESSION['MM_UserGroup']);
      unset($_SESSION['PrevUrl']);
      $logoutGoTo = "statfatthankyou.php";
      if ($logoutGoTo) {
        header("Location: $logoutGoTo");
        exit;
    ?>
    <?php
    if (!isset($_SESSION)) {
      session_start();
    $MM_authorizedUsers = "";
    $MM_donotCheckaccess = "true";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
      // For security, start by assuming the visitor is NOT authorized.
      $isValid = False;
      // When a visitor has logged into this site, the Session variable
    MM_Username set equal to their username.
      // Therefore, we know that a user is NOT logged in if that Session
    variable is blank.
      if (!empty($UserName)) {
        // Besides being logged in, you may restrict access to only certain
    users based on an ID established when they login.
        // Parse the strings into arrays.
        $arrUsers = Explode(",", $strUsers);
        $arrGroups = Explode(",", $strGroups);
        if (in_array($UserName, $arrUsers)) {
          $isValid = true;
        // Or, you may restrict access to only certain users based on their
    username.
        if (in_array($UserGroup, $arrGroups)) {
          $isValid = true;
        if (($strUsers == "") && true) {
          $isValid = true;
      return $isValid;
    $MM_restrictGoTo = "statfatuserlogin.php";
    if (!((isset($_SESSION['MM_Username'])) &&
    (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'],
    $_SESSION['MM_UserGroup'])))) {
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0)
      $MM_referrer .= "?" . $QUERY_STRING;
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" .
    urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo);
      exit;
    ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
    $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) :
    $theValue;
      $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
          break;
      return $theValue;
    }if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
    $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) :
    $theValue;
      $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
          break;
      return $theValue;
    $currentPage = $_SERVER["PHP_SELF"];
    $maxRows_statviewdata = 1;
    $pageNum_statviewdata = 0;
    if (isset($_GET['pageNum_statviewdata'])) {
      $pageNum_statviewdata = $_GET['pageNum_statviewdata'];
    $startRow_statviewdata = $pageNum_statviewdata * $maxRows_statviewdata;
    $colname_statviewdata = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $colname_statviewdata = $_SESSION['MM_Username'];
    mysql_select_db($database_statprogram, $statprogram);
    $query_statviewdata = sprintf("SELECT * FROM datapost WHERE email = %s",
    GetSQLValueString($colname_statviewdata, "text"));
    $query_limit_statviewdata = sprintf("%s LIMIT %d, %d", $query_statviewdata,
    $startRow_statviewdata, $maxRows_statviewdata);
    $statviewdata = mysql_query($query_limit_statviewdata, $statprogram) or
    die(mysql_error());
    $row_statviewdata = mysql_fetch_assoc($statviewdata);
    if (isset($_GET['totalRows_statviewdata'])) {
      $totalRows_statviewdata = $_GET['totalRows_statviewdata'];
    } else {
      $all_statviewdata = mysql_query($query_statviewdata);
      $totalRows_statviewdata = mysql_num_rows($all_statviewdata);
    $totalPages_statviewdata =
    ceil($totalRows_statviewdata/$maxRows_statviewdata)-1;
    $pageNum_statviewdata = 0;
    if (isset($_GET['pageNum_statviewdata'])) {
      $pageNum_statviewdata = $_GET['pageNum_statviewdata'];
    $startRow_statviewdata = $pageNum_statviewdata * $maxRows_statviewdata;
    $maxRows_statfatstats = 10;
    $pageNum_statfatstats = 0;
    if (isset($_GET['pageNum_statfatstats'])) {
      $pageNum_statfatstats = $_GET['pageNum_statfatstats'];
    $startRow_statfatstats = $pageNum_statfatstats * $maxRows_statfatstats;
    $colname_statfatstats = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $colname_statfatstats = $_SESSION['MM_Username'];
    mysql_select_db($database_statprogram, $statprogram);
    $query_statfatstats = sprintf("SELECT * FROM datapost WHERE email = %s",
    GetSQLValueString($colname_statfatstats, "text"));
    $query_limit_statfatstats = sprintf("%s LIMIT %d, %d", $query_statfatstats,
    $startRow_statfatstats, $maxRows_statfatstats);
    $statfatstats = mysql_query($query_limit_statfatstats, $statprogram) or
    die(mysql_error());
    $row_statfatstats = mysql_fetch_assoc($statfatstats);
    if (isset($_GET['totalRows_statfatstats'])) {
      $totalRows_statfatstats = $_GET['totalRows_statfatstats'];
    } else {
      $all_statfatstats = mysql_query($query_statfatstats);
      $totalRows_statfatstats = mysql_num_rows($all_statfatstats);
    $totalPages_statfatstats =
    ceil($totalRows_statfatstats/$maxRows_statfatstats)-1;
    $maxRows_stattotallost = 10;
    $pageNum_stattotallost = 0;
    if (isset($_GET['pageNum_stattotallost'])) {
      $pageNum_stattotallost = $_GET['pageNum_stattotallost'];
    $startRow_stattotallost = $pageNum_stattotallost * $maxRows_stattotallost;
    $colname_stattotallost = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $colname_stattotallost = $_SESSION['MM_Username'];
    mysql_select_db($database_statprogram, $statprogram);
    $query_stattotallost = sprintf("SELECT totalincheslost, totalwtlost FROM
    datapost WHERE email = %s", GetSQLValueString($colname_stattotallost,
    "text"));
    $query_limit_stattotallost = sprintf("%s LIMIT %d, %d",
    $query_stattotallost, $startRow_stattotallost, $maxRows_stattotallost);
    $stattotallost = mysql_query($query_limit_stattotallost, $statprogram) or
    die(mysql_error());
    $row_stattotallost = mysql_fetch_assoc($stattotallost);
    if (isset($_GET['totalRows_stattotallost'])) {
      $totalRows_stattotallost = $_GET['totalRows_stattotallost'];
    } else {
      $all_stattotallost = mysql_query($query_stattotallost);
      $totalRows_stattotallost = mysql_num_rows($all_stattotallost);
    $totalPages_stattotallost =
    ceil($totalRows_stattotallost/$maxRows_stattotallost)-1;
    $queryString_statfatstats = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_statfatstats") == false &&
            stristr($param, "totalRows_statfatstats") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_statfatstats = "&" . htmlentities(implode("&",
    $newParams));
    $queryString_statfatstats = sprintf("&totalRows_statfatstats=%d%s",
    $totalRows_statfatstats, $queryString_statfatstats);
    ?>
    Thank you!

  • How do I zoom to a specific point on a page

    My first question ever to support:
    WIndows 7 - Firefox 32.0.2 - Laptop without touch screen or touch pad (mouse and keyboard only)
    I have found lots of ways to Zoom on a page. However, zoom always anchors to the top left. I would really love to zoom to the position of the mouse pointer. Usually I am focused on a specific piece of the content and not the whole page.
    Is this possible? Thanks everyone.

    hello, i don't think that this is possible currently (or that there are any addons that would provide this functionality).
    however, it sounds like a nifty feature though when you use the gestures involving the mouse to zoom - you might want to file an enhancement bug at bugzilla.mozilla.org about that...

  • Link to a specific workitem in UWL

    Hi All,
    I have a requirement to send a link to the user's Outlook that takes him directly to a specific workitem in the UWL (not the general UWL page).
    Can anybody tell me how to obtain this link...I know how to get to the UWL, but not to a specific workitem.
    I really appreciate if you can respond to this asap as this has been holding up my development for a while.
    Thanks in advance,
    venu

    For that functionality, you need to configure Extended Notifications if your SAP release supports it.  Check out these links for more info:
    <a href="/people/saujanya.gn/blog/2006/12/19/how-to-get-work-items-your-outlook-inbox:///people/saujanya.gn/blog/2006/12/19/how-to-get-work-items-your-outlook-inbox
    <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/d5/581ee8d56f1247bf34cfcd66d16d81/content.htm">http://help.sap.com/saphelp_erp2005vp/helpdata/en/d5/581ee8d56f1247bf34cfcd66d16d81/content.htm</a>

  • Force font in a specific domain...

    I prefer a specific font across most sites.
    However, with 'Allow pages to use their own fonts...' unchecked, is it possible to force a single domain to use its'
    own fonts with css?

    You can specify the font with code in userContent.css.
    *http://kb.mozillazine.org/userContent.css
    *https://developer.mozilla.org/en/CSS/@document
    *https://developer.mozilla.org/Web/CSS/font-family
    *https://developer.mozilla.org/Web/CSS/font
    <pre><nowiki>@-moz-document domain(<enter domain>){
    html, body, body * { font-family: "<font name>" !important; }
    }</nowiki></pre>
    The customization files userChrome.css (user interface) and userContent.css (websites) are located in the <b>chrome</b> folder in the Firefox profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    *Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
    *Use a plain text editor like Notepad to create a (new) userContent.css file in the chrome folder (file name is case sensitive)
    *Paste the code in the userContent.css file in the editor window
    *Make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userContent.css.<br>Otherwise Windows may add a hidden .txt file extension and you end up with a not working userContent.css.txt file

  • Is it possible to link to a specific file in a PDF "package"?

    I'd like to link to a specific file in a PDF "package" from a web page. Is this possible?
    Thanks.

    No. Here's the most recent documentation on what is available: http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open _parameters_v9.pdf

Maybe you are looking for

  • JVM Crash ConcurrentGCThread (6u21 windows-amd64 jvm.dll+0x1291fb)

    Hi, a customer hit this JVM crash on Windows 2008 SP1 with JDK 6u21: # A fatal error has been detected by the Java Runtime Environment: #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006d9b91fb, pid=3944, tid=2912 # JRE version: 6.0_21-b07

  • Is this a bug in NWDS;Quick Par upload

    Hi, I was doing a elearning exercise where i have to modify the localization file and place them into Private/src folders. portal-inf -classes localization.properties localization_de.properties - localization - private classes lib - srclib.api - srcl

  • Flash Web Photo Gallery Auto Play

    Hello! I'm using the Flash - Gallery 1 that came with Photoshop CS2. Is there a (hopefully easy) way to get the gallery to automatically play the slideshow when a user visits the page (instead of clicking the play button)? Thanks! Sonya

  • Mac OS error -39

    Hi, I have an Ibook G4 and up to now have been downloading movies to watch on my Ibook. Recently I have burnt some to DVD to watch on my DVD player but I have had a few that would not burn and had an error message "Mac OS error -39". Can anyone tell

  • Custom JSpinner Model / Editor

    Hello, This question may have been answered in the past but I could not find anything. I am trying to use a JSpinner for cycling through pages of information. I would like the display to show current page of total number of pages, i.e. 1 of 10. I wou