Align on the decimal value in the tables

I have a table in InDesign CS3. I apply a tab in the columns, to align all these numbers on the decimal point.

The numbers are not mobile. It doesn't matter where I put the tab. Yes, the character to align on is '. '. It works for all my other cards. Holy hell what?

Arrgle barrrgle,

Chryss

When you use the align decimal in your rule tab, you do not have specifically insert a tab character. Instead, the period acts as a tab.

It is also important, that this only works with the text aligned to the left.

Check out the forum for a similar position, somewhere earlier this week - Peter Spier went very far to explain exactly how to proceed.

Tags: InDesign

Similar Questions

  • Lose the vertical alignment of the table during the conversion of the ditamap to book

    FrameMaker Version: 12.0.4.445 (later part of TCS5)

    1. I have a project structured, where several XML files have been grouped in a ditamap.
    2. For one of the XML files, I have a table, where I need to set the cell Vertical alignment of cells in the MIDDLE.
    3. So using Paragraph Designer > table cell, I have change the entries in the top in the Middle (the default values have been Top).
    4. With the ditamap pane selected, I'll then menu file > > Save Ditamap under
    5. I save ditamap as ' book with fm components 12.0 (* .book) "file type.
    6. In the resulting book, the XML files are now. FM files.

    However, at this point, when I open the. File of FM which has the table, the cell styles back to the TOP.

    I searched high and low for a similar problem. It's look like a bug to me, but can someone confirm?

    Thank you

    No, this is not a bug by itself. I bet that the alignment is lost before you generate the book. After you set the alignment and saving and closing the file... reopen and see if the alignment is still there... I bet it's gone. As a general rule, you cannot apply put in shape or properties to objects (elements) in a DITA file. This applies to font and paragraph properties as well as table set in shape and other types of development in the form. All you can do is create items and set attributes. Any parameter properties will usually be lost on file save.

    You would probably need to have a 'process of publication' (script any) you run your generated book and chapter files that would scan for an attribute that shows some properties must be set on the table. The @outputclass attribute is typically used for this kind of thing. I'm not aware of what anyone in default FrameMaker DITA, who put in place to manage this type of formatting of the tables.

    If this formatting that you try to apply is consistent for the whole table, it is possible that you will be able to do this by creating a new table format that has this set of default formatting. When you insert a table in a subject, the table format is assigned to the tgroup/@outputclass attribute and this is the form that is used when rendering the table. Just create a new table in the structured application model and put in place this format to have the properties you want. Then, when you insert the table, be sure to select this format. It can be hard to set this up, but it * should * work.

    However, if this does not work, or you need more refined formatting applied to the parts of the table, I produce a tool called DITA-FMx, which offers extended DITA creation and publication of the options for FrameMaker. It offers features that allow this type of table set shaped to be applied by setting the attribute @outputclass to a specific value on the line or cell. You can get more information on DITA-FMx here...

    http://leximation.com/DITA-FMX/

    Good luck!

    Scott Prentice

    Leximation, Inc..

    www.leximation.com

  • JDeveloper 10.1.3.4: text-align for the table column has no effect

    Hello

    I use JDeveloper 10.1.3.4. In a table, I have a column that contains the numbers, which are aligned to the left by default:
    Applied
    ---------------
    $50.00
    $2,160.00
    $50.00
    ---------------
    $2,260.00
    I want to be aligned with the right to examine more carefully:
    Applied
    ---------------
             $50.00
          $2,160.00
             $50.00
    ---------------
          $2,260.00
    Or better yet, have the cell with the longest string aligned to the Center, and all the other cells in alignment with it by the decimal point:
        Applied
    ---------------
          $50.00
       $2,160.00
          $50.00
    ---------------
       $2,260.00
    I looked in the property inspector, and the only thing that seems closest to the goal is text-align. I put this attribute on the right (text-align: right) for the column and the outputText, but has no effect. Everything is always embedded on the left. How to do things?

    Thank you!


    Newman

    Hello Newman,

    as I recall, I did using the formatType property = 'number' of the component of the column

    Kind regards

    Branislav

  • Alignment of the table

    When I create a new document and insert a new table, it is not bordered at the absolute top of the page. How can I get for lining my table to the top of the page so that it is not any gap @ the top of the page when view in the browser. I've attached an example of false text file and false image placeholder just to get an idea what I'm talking about. Any help will be greatly appreciated.


    Link to a style sheet externally (by using the CSS of DW editor), or to incorporate a
    stylesheet in your code (betweenandby the following
    inside style (embedded noted for the convenience of cut-and - paste) (assuming you want
    no margins).


    (when the value is zero, units are not required)

    You can also try

    Body {margin: 0 0 0 0; padding: 0 ;}}

    or

    Body {margin: 0; padding: 0 ;}}

    as a method of shorthand.

    This will take care of margins in IE4 + and NN6 +...

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.dreamweavermx-templates.com - template Triage!
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================

    "rbaker1" wrote in message
    News:e3t9so$A42$1@forums. Macromedia.com...
    > When I create a new document and insert a new table, it is not aligned to the
    > absolute
    > beginning of the page. How can I go on the lining of my table to the top of the
    > page
    > so that it isn't? t no gap @ the top of the page when view in the browser. I have
    > have
    > attached a sample file with text and picture fake fake place carries just for
    > get
    > any idea what I'm talking about you. Any help will be greatly
    > appreciated.
    >

  • Customizations do not work for the alignment of the Table

    Dear all, aJohny

    We have improved r 12.1.3 to 12.2.4 under customization already existed in 12.1.3 we did import customization to 12.2.4

    Picture below shows 4 tables

    -Modified objectives

    -New objectives
    -Objectives deleted
    -Objectives


    I'm trying to align all the columns by column weighting of the target (%) as a 20% width and the width of column story that 5% to the Level of the Site

    But as stated below its does not work

    1.png

    We tried to remove the customization and recreate it, but same problem exists.

    Please notify.


    Thank you and best regards,

    Sudhir

    Thanks AJ!

    As recommended, we have treated this alignment issue table in CO related extension using the code below.

    ' public void processRequest (OAPageContext oapagecontext, OAWebBean oawebbean)

    {

    super.processRequest (oapagecontext, oawebbean);

    //*************************

    Table 1 OAAdvancedTableBean = (OAAdvancedTableBean) oawebbean.findChildRecursive ("NewObjectivesRN");

    Table1.prepareForRendering (oapagecontext);

    OAColumnBean columnBean1 = (OAColumnBean) table1.findChildRecursive ("XXNewObjectivesWeightingPercentCol");

    DictionaryData columnFormat1 = (DictionaryData) columnBean1.getColumnFormat ();

    If (columnFormat1 is nothing)

    {

    columnFormat1 = new DictionaryData();

    }

    columnFormat1.put (WIDTH_KEY, "45%");

    columnBean1.setColumnFormat (columnFormat1);

    //------------------------

    OAColumnBean columnBean2 = (OAColumnBean) table1.findChildRecursive ("xxNewHistoryColumn");

    DictionaryData columnFormat2 = (DictionaryData) columnBean2.getColumnFormat ();

    If (columnFormat2 is nothing)

    {

    columnFormat2 = new DictionaryData();

    }

    columnFormat2.put (WIDTH_KEY, '20% ');

    columnBean2.setColumnFormat (columnFormat2);

    //*************************

    Table2 OAAdvancedTableBean = (OAAdvancedTableBean) oawebbean.findChildRecursive ("ChgObjectivesRN");

    table2.prepareForRendering (oapagecontext);

    OAColumnBean columnBean4 = (OAColumnBean) table2.findChildRecursive ("ChangedObjectivesWeightingPercentCol");

    DictionaryData columnFormat4 = (DictionaryData) columnBean4.getColumnFormat ();

    If (columnFormat4 is nothing)

    {

    columnFormat4 = new DictionaryData();

    }

    columnFormat4.put (WIDTH_KEY, "45%");

    columnBean4.setColumnFormat (columnFormat4);

    //------------------------

    OAColumnBean columnBean3 = (OAColumnBean) table2.findChildRecursive ("xxChgHistoryColumn");

    DictionaryData columnFormat3 = (DictionaryData) columnBean3.getColumnFormat ();

    If (columnFormat3 is nothing)

    {

    columnFormat3 = new DictionaryData();

    }

    columnFormat3.put (WIDTH_KEY, '20% ');

    columnBean3.setColumnFormat (columnFormat3);

    //*************************

    Table 3 OAAdvancedTableBean = (OAAdvancedTableBean) oawebbean.findChildRecursive ("DelObjectivesRN");

    table3.prepareForRendering (oapagecontext);

    OAColumnBean columnBean5 = (OAColumnBean) table3.findChildRecursive ("XXQFDeletedObjectivesWeightingPercentCol");

    DictionaryData columnFormat5 = (DictionaryData) columnBean5.getColumnFormat ();

    If (columnFormat5 is nothing)

    {

    columnFormat5 = new DictionaryData();

    }

    columnFormat5.put (WIDTH_KEY, "45%");

    columnBean5.setColumnFormat (columnFormat5);

    //------------------------

    OAColumnBean columnBean6 = (OAColumnBean) table3.findChildRecursive ("xxDelHistoryColumn");

    DictionaryData columnFormat6 = (DictionaryData) columnBean6.getColumnFormat ();

    If (columnFormat6 is nothing)

    {

    columnFormat6 = new DictionaryData();

    }

    columnFormat6.put (WIDTH_KEY, '20% ');

    columnBean6.setColumnFormat (columnFormat6);

    //*************************

    Table 4 OAAdvancedTableBean = (OAAdvancedTableBean) oawebbean.findChildRecursive ("ApprObjectivesRN");

    table4.prepareForRendering (oapagecontext);

    OAColumnBean columnBean7 = (OAColumnBean) table4.findChildRecursive ("XXQFApprovedObjectivesWeightingPercentCol");

    DictionaryData columnFormat7 = (DictionaryData) columnBean7.getColumnFormat ();

    If (columnFormat7 is nothing)

    {

    columnFormat7 = new DictionaryData();

    }

    columnFormat7.put (WIDTH_KEY, "45%");

    columnBean7.setColumnFormat (columnFormat7);

    //------------------------

    OAColumnBean columnBean8 = (OAColumnBean) table4.findChildRecursive ("xxApprHistoryColumn");

    DictionaryData columnFormat8 = (DictionaryData) columnBean2.getColumnFormat ();

    If (columnFormat8 is nothing)

    {

    columnFormat8 = new DictionaryData();

    }

    columnFormat8.put (WIDTH_KEY, '20% ');

    columnBean8.setColumnFormat (columnFormat8);

    //*************************

    }

    Thank you best regards &,.

    Sudhir

  • Vertical alignment of the table cell can be defined via CSS?

    In a table cell (IE, 'td') is it possible to define "valign" via CSS, instead of table cell appropriate?

    In other words, instead of...

    < table >

    < b >

    < td valign = "top" >

    .. is it possible to do:

    < table >

    < b >

    < class td = "top" >

    .. somehow, .and allow the stylesheet to define the vertical alignment?

    I ask because none of the attribute in Dreamweaver CS4 presets seem to provide for vertical alignment. Everything on God's Green Earth seems to be there, but the vertical alignment of the cell table seems to be the ONLY thing THAT forgotten CSS.

    miyeager, I'm sorry, I misread your question. Yes, you can. Use ' vertical-align: top of the text.

  • Not able to print the decimal values in a table

    Hi all

    I created an application. Here, I have a table with three columns Col1 and col2 are numbers and col3 is the diffrence between col1, col2.

    I use AJAX and JavaScript to calculate the difference in a dynamic way.

    I am able to print the difference as for example:-1, 2, 1.5-1.5. but not 0.8, 0.8, 0.1 etc...

    If col1 col2 = 1.2 - capable of printing

    If col1 to col2 = 0.2 - error, unexpected token

    error_07012016.PNG

    -Code AJAX:

    Declare  
      p_curr  number;  
      p_prev    number;  
      p_diff number;  
    Begin  
      p_prev    := to_number(apex_application.g_x01);  
      p_curr    := to_number(apex_application.g_x02);  
      
       
      SELECT to_number(p_curr - p_prev) into p_diff  
      from dual;  
      
      -- return calculated value
      sys.htp.p(p_diff);  
    End;
    

    -JavaScript: running the loading of the page

    function f_calulate_duration(pThis) {  
    
      var row_id     = pThis.id.substr(4);  
      var s          = $('#f18_'+row_id).val().replace(/[^\d.-]/g, ''); 
      var curr       = $(pThis).val().replace(/[^\d.-]/g, ''); 
    
    if(!s){
      var s= 0;
      var prev = s;}
    else{
      var prev = s;}
    
    apex.server.process 
    ( "CALC_DIFF", { x01: prev, x02: curr }, 
    { success: function( pData ) { 
    $('#f23_'+row_id).val(pData);}}
    );  
    }  
    

    Please suggest the solution to this.

    Oracle Apex Version: 4.2.

    Thank you

    Dev

    Hello

    I don't get the point to use the expensive AJAX call to the database, instead you can have the same functionality with JavaScript code below.

    function f_calulate_duration(pThis) {
      var row_id     = pThis.id.substr(4);
      var s          = $('#f18_'+row_id).val().replace(/[^\d.-]/g, '');
      var curr       = $(pThis).val().replace(/[^\d.-]/g, '');   
    
    if(!s){
      var s= 0;
      var prev = s;}
    else{
      var prev = s;}
    
    var diff = 0;
    diff = curr - prev;
    var n = diff.toFixed(2);
    alert(n);
    $('#f23_'+row_id).val(n);  
    
    //-- Remove this code
    /*apex.server.process
    ( "CALC_DIFF", { x01: prev, x02: curr },
    { success: function( pData ) {
    $('#f23_'+row_id).val(pData);}}
    );*/
    
    }    
    

    Thank you

    D

  • The Horizontal alignment of the table using DW4 and css help.

    It works in Internet Explorer, but not FireFox.

    The Web site is http://www.airrepaircarolina.com/

    The CSS code is below...

    * {margin: 0;} Padding: 0 ;}

    . {BoldBody}

    do-family: "Times New Roman", Times, serif;

    do-size: 18px;

    make-weight: bold;

    Color: #000;

    }

    {#table1}

    background-color: #FFF;

    letter-spacing: normal;

    text-align: left;

    vertical-align: top;

    horizontal-align: center;

    Word-spacing: normal;

    white-space: normal;

    border-top-style: none;

    border-right-style: none;

    border-bottom-style: none;

    border-left-style: none;

    top: auto;

    position: fixed;

    }

    . {To header

    do-family: "Times New Roman", Times, serif;

    font size: 24 PX.

    make-weight: bold;

    color: #0E76BD;

    }

    . {BodyCopy}

    do-family: "Times New Roman", Times, serif;

    do-size: 18px;

    make-weight: normal;

    Color: #000;

    }

    . LinkText}

    do-family: Arial, Helvetica, without serif.

    do-size: 14px;

    make-weight: normal;

    color: #FFF;

    }

    LannBarr wrote:

    What should I put in where you have the double asterisk * with width, it is centered *

    Nothing. It's just an explanatory note (or comment) in the CSS syntax.

    / * This is a CSS comment * /.

  • Alignment of the table in Oracle Apex

    Hi all

    I use Oracle Apex 4.2.5 for application development. I used 26 theme.

    In my page I used the Template of the Page as a level with the sidebar tab left. Graphic design and report on this Page.

    I created a button to hide / show the sidebar.

    When I hide the sidebar, then more space white bar inside the graph. (chart appear somewhere not in the Center)

    My requirement is necessary reduce the white space (or center the graph) when the sidebar is leather.

    Here is my sample application to apex.oracle.com.

    Application name: chart

    Application ID: 36667

    Sugi_demo = workspace

    Username = my_demo

    password = my_demo

    Thank you

    Su.GI

    Hi Su.gi,

    Please check the application now.

    I removed the width fixed 530px and centered on the chart.

    I have used Inline CSS in the page attributes:

    object {
      margin: 0 auto !important;
    }
    

    I hope this helps!

    Kind regards

    Kiran

  • Insert using TO_NUMBER does not seem to accept the decimal value

    Oracle 10g

    I'm trying to insert a decimal value in a table from another table oracle oracle. The column of the source table is a data type
        "PLOTSIZE10_30CM"    VARCHAR2(4 BYTE),
        "PLOTSIZE30_50CM"    VARCHAR2(4 BYTE),
        "PLOTSIZE50CM"       VARCHAR2(3 BYTE),
    The destination table contains the following:
        "PLOT_SIZE_10_30CM" NUMBER(7,0),
        "PLOT_SIZE_30_50CM" NUMBER(7,0),
        "PLOT_SIZE_50CM"    NUMBER(7,0),
    When I run the insert statement as the following decimal values are not inserted into the destination table.
    SQL> SELECT DISTINCT PLOTSIZE50CM FROM IMPORT_DATA WHERE STAND_ID = 23;
    
    PLO
    ---
    0.2
    
    SQL>
    SQL> INSERT INTO
      2  psp_plot_measurements
      3  ( species_major
      4  , plot_location_id
      5  , codominant_height
      6  , regen_density_primary_code
      7  , regen_density_secondary_code
      8  , PLOT_SIZE_10_30CM
      9  , PLOT_SIZE_30_50CM
     10  , PLOT_SIZE_50CM
     11  )
     12  SELECT DISTINCT species_major
     13       , '2'
     14       , height_codom
     15       , regen_prim
     16       , regen_sec
     17       , TO_NUMBER(plotsize10_30cm)
     18       , TO_NUMBER(plotsize30_50cm)
     19       , TO_NUMBER(plotsize50cm)
     20    FROM import_data
     21    WHERE stand_id = 23;
    
    1 row created.
    
    SQL>
    SQL> SELECT PLOT_SIZE_50CM FROM PSP_PLOT_MEASUREMENTS;
    
    PLOT_SIZE_50CM
    --------------
                 0
    See you soon
    Ben

    Hi Ben,

    If the destination table have the column as a Number (7.0) and then how you can store a decimal value.

    The destination table contains the following:

    "PLOT_SIZE_10_30CM" NUMBER(7,0),
    "PLOT_SIZE_30_50CM" NUMBER(7,0),
    "PLOT_SIZE_50CM"    NUMBER(7,0),
    

    Look at sample scenario-

    SQL> CREATE TABLE TEST1(COL NUMBER(7,0));
    
    Table created.
    
    SQL> CREATE TABLE TEST2(COL NUMBER(7,1));
    
    Table created.
    
    SQL> INSERT INTO TEST1(COL) VALUES(1.234);
    
    1 row created.
    
    SQL> INSERT INTO TEST2(COL) VALUES(1.234);
    
    1 row created.
    
    SQL> INSERT INTO TEST1(COL) VALUES(0.234);
    
    1 row created.
    
    SQL> INSERT INTO TEST2(COL) VALUES(0.234);
    
    1 row created.
    
    SQL> SELECT * FROM TEST1;
    
           COL
    ----------
             1
             0
    
    SQL> SELECT * FROM TEST2;
    
           COL
    ----------
           1.2
            .2
    
    SQL>
    

    If you want to store the decimal value, you must modify the destination table.

  • How to adjust the alignment of the image or tables more precisely (HTML only)

    I posted earlier and had a lot of luck!

    Here is a link to the site:

    http://jjtestpage.herobo.com/index.html

    That's a model from ebay so I would prefer to just use HTML rather than referencing an external CSS file. The question I have is in what regards the alignment of the table in the photos. I would like to be aligned vertically to the edge of the logo at the top of the page, and not all the way to the left. Is it possible that I can do this?

    shesomeoneso wrote:

    I posted earlier and had a lot of luck!

    Here is a link to the site:

    http://jjtestpage.herobo.com/index.html

    That's a model from ebay so I would prefer to just use HTML rather than referencing an external CSS file. The question I have is in what regards the alignment of the table in the photos. I would like to be aligned vertically to the edge of the logo at the top of the page, and not all the way to the left. Is it possible that I can do this?

    Replace the existing table that contains the large product image and 2 stickers with the table below. No doubt it will be a descriptive text to the right of the large product image.

    http://i.imgur.com/4Xr9DR1.jpg"width ="600"height ="539"alt ="Great Photo"style =" "border: 1px solid #000000;" name = "swap" / > " Product description goes here

    http://i.imgur.com/4Xr9DR1.jpg"width ="100"height ="80"alt ="Small picture"style =" border: 1px solid #000000; " margin-bottom: 3px; "" onmousedown = "document.swap.src ='http://i.imgur.com/4Xr9DR1.jpg';" / >http://i.imgur.com/OIRblYk.jpg "width ="100"height ="80"alt ="Small picture"style =" border: 1px solid #000000; " margin: 0 3px 0 10px; "onmousedown =" document.swap.src ='http://i.imgur.com/OIRblYk.jpg';"/ >

  • mask for the decimal value

    people

    I have the following in the table problem, I have this 00123456,12 value

    sending a file.txt need the following value:

    001234561200

    some mascara?

    LTC

    In the table, is stored as a character or a numeric value?

    My databases are set to use a period rather than a comma as the decimal separator, so substitute accordingly. Also I'm questioning the value of double rather than a table, but this seems to be what you want?

    Select Replace (to_char (00123456.12, 'FM00999999.9900'),'.) ') twice;

    REPLACE (TO_CHAR (123456.12, 'FM00999999.9900'),'. ')

    --------------------------------------------------------------------------------

    001234561200

  • Cut the decimal value in the input text

    Hi all

    JDeveloper version: iam using jdev version 11.1.1.6.2

    I need to cut the decimal when the user enters a decimal value.

    IAM a table with one column as editable.

    For example:-If the user enter 123,53 in the editable column, tab press ENTER key press or move to the next row, I want this value to be changed like 123.

    Guide me on how to do this. I tried with VO/OT Format, convert number, nothing helps me.

    Reg,

    Lakshmi.

    USE IT FOR YOUR NEED...

    that assumes that you have a table in which a column is ok SALARY, then add a ValueChangeListener on data from this column and AutoSubmit = true and also immediate = true and then write the code in valueChangeEvent as below...

    public void decimals (ValueChangeEvent valueChangeEvent)

    {

    RichInputText sal = (RichInputText) valueChangeEvent.getComponent ();

    s oracle.jbo.domain.Number = (oracle.jbo.domain.Number) valueChangeEvent.getNewValue (); for Type conversion

    int a = s.intValue ();

    sal.setValue (new oracle.jbo.domain.Number (his));

    RequestContext adfContext = RequestContext.getCurrentInstance ();

    adfContext.addPartialTarget (sal);

    }

    DO it this way, I hope that the problem will be solved.

  • How to set the alignment of the field in a table in jdev 11.1.2.3?

    Hello
    How to set the alignment of the field in a table in jdev 11.1.2.3?
    for example: to display a body of numbers in a table as right aligned.
    I tried to put field (amount) VO UI Hint Format Type: Number; Format: 0000.00
    and jspx, flowing, but it doesnot work.
    Thank you.
    Bao

    < af:column sortProperty = "#{bindings." VO1.hints.amount.name}.
    sortable = "true".
    headerText = "#{bindings." VO1.hints.amount.label}.
    ID = "c44" width = "60".
    Align = "center" >
    < af:inputText value = "#{row.bindings.Amount.inputValue} '"
    label = "#{bindings." VO1.hints.amount.label}.
    required = "#{bindings." VO1.hints.amount.mandatory}.
    columns = "#{bindings." VO1.hints.amount.DisplayWidth}.
    maximumLength = "#{bindings." VO1.hints.amount.precision}.
    shortDesc = "#{bindings." VO1.hints.amount.ToolTip}.
    ID = "it58.
    secret = "false".
    inlineStyle = "" text-decoration: overline; ">"
    < f: validator binding="#{row.bindings.Amount.validator}"/ >
    < / af:inputText >
    < / af:column >

    Hello
    To set a field right alignment in a table:
    It doesnot work when InlineStyle-> text-align: right;
    It works when ContentStyle-> text-align: right;

  • Error in SQL syntax when inserting data to the table in the form of values using insert record

    Hello

    I was hoping that someone could help me.  I am creating a form of registration on a website to insert data into a database table.  When you try to create the form, I get the following error:


    You have an error in your SQL syntax; consult the manual for your version of the MySQL server for the right syntax to use near ' VALUES (name, regno, reason) leave (has ', 1, 'dddd')' at line 1

    I checked the syntax, but you don't know what's wrong.

    I am running Windows 7 with Dw cs6 and wamp server.

    Leave with the names of column (name, regno, reason) is the name of the table.

    Thank you for your help and please help me.

    The code is as below:

    <? php require_once('Connections/connect.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via 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 "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

    }

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "form1")) {}

    $insertSQL = sprintf ("INSERT INTO leave (name, regno, reason) VALUES (%s, %s, %s)',

    GetSQLValueString ($_POST ['name'], "text").

    GetSQLValueString ($_POST ['reg'], "int").

    GetSQLValueString ($_POST ['reason'], "text"));

    @mysql_select_db ($database_connect, $connect);

    $Result1 = mysql_query ($insertSQL, $connect) or die (mysql_error ());

    }

    ? >

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "content-type" content = text/html"; charset = utf-8 "/ >"

    < title > online form let < /title >

    < name meta = "keywords" content = "" / > "

    < name meta = "description" content = "" / > "

    < link href = "styless.css" rel = "stylesheet" type = "text/css" media = "screen" / > "

    < / head >

    < body >

    < div id = 'wrapper' >

    < div id = "header" >

    < div id = 'menu' >

    < ul >

    < class li = "current_page_item" > < a href = "#" > home < /a > < /li >

    < li > < /li >

    < li > < /li >

    < li > < a href = "#" > on < /a > < /li >

    < li > < /li >

    < li > < a href = "#" > Contact < /a > < /li >

    < /ul >

    < / div >

    <!-end #menu->

    < div id = "Search" >

    < / div >

    <!-end #search->

    < / div >

    <!-end #header->

    < div id = "logo" >

    E - SCHOOL of CHRIST < h1 > < / h1 >

    < p > < / p >

    < / div >

    < hr / >

    <!-end #logo->

    <! - end #header - wrapper->

    < div id = "page" >

    < div id = "content" >

    < div class = "post" >

    < h2 class = "title" > leave application online < / h2 >

    < div class = "entry" > < / div >

    < / div >

    < do action = "<?" PHP echo $editFormAction;? ">" method = "POST" name = "form1" id = "form1" >

    < table width = "200" border = "2" cellspacing = "5" cellpadding = "5" >

    < b >

    < scope th 'row' = > name < /th >

    < td > < label for = "name" > < / label >

    < input type = "text" name = "name" id = "name" / > < table >

    < /tr >

    < b >

    < scope = "row" th > Reg No. < /th >

    < td > < label for = "reg" > < / label >

    < input type = "text" name = "reg" id = "reg" / > < table >

    < /tr >

    < b >

    < scope = "row" th > why < /th >

    < td > < label for = "reason" > < / label >

    < name textarea = 'reason' id = cols 'reason' = "45" rows = "5" > < / textarea > < table >

    < /tr >

    < b >

    < scope = "row" th > < /th >

    < td > < input type = "submit" name = "b1" id = "b1" value = "Submit" / > < table >

    < /tr >

    < /table >

    < input type = "hidden" name = "MM_insert" value = "form1" / >

    < / make >

    < / div >

    <!-end #content->

    < div id = "sidebar" >

    < ul >

    < li >

    Notice of < h2 > < / h2 >

    < p > students must present the appropriate documents supporting the reason for leave within 3 working days. < /p >

    < /li >

    < li id = "calendar" >

    Calendar < h2 > < / h2 >

    < div id = "calendar_wrap" >

    < table summary = "Calendar" >

    < caption >

    March 2014

    < / legend >

    < thead >

    < b >

    < th abbr = "Monday" scope = "col" title = "Monday" > M < /th >

    < th abbr = "Tuesday" scope = "col" title = "Tuesday" > T < /th >

    < th abbr = "Wednesday" scope = "col" title = "Wednesday" > W < /th >

    < th abbr = "Thursday" scope = "col" title = 'Thursday' > T < /th >

    < th abbr = "Friday" scope = "col" title = 'Friday' > F < /th >

    < th abbr = "Saturday" scope = "col" title = 'Saturday' > S < /th >

    < th abbr = "Sunday" scope = "col" title = 'Sunday' > S < /th >

    < /tr >

    < / thead >

    < tfoot >

    < b >

    < td abbr = "February" colspan = "3" id = "prev" > < a href = "#" title = "" > & laquo; Feb < /a > < table >

    < class td = "pad" > < table >

    < td abbr = "April" colspan = "3" id = "next" > < a href = "#" title = "" > Apr & raquo; < /a > < table >

    < /tr >

    < / tfoot >

    < tbody >

    < b >

    < td colspan = "5" class = "pad" > < table >

    < td > < table > 1

    < td > < table > 2

    < /tr >

    < b >

    < td > 3 < table >

    < td > < table > 4

    < td > 5 < table >

    < td > < table > 6

    < td > < table > 7

    < td > < table > 8

    < td > < table > 9

    < /tr >

    < b >

    < td > < table > 10

    < td id = 'today' > < table > 11

    < td > < table > 12

    < td > < table > 13

    < td > < table > 14

    < td > < table > 15

    < td > < table > 16

    < /tr >

    < b >

    < td > < table > 17

    < td > < table > 18

    < td > < table > 19

    < td > < table > 20

    < td > < table > 21

    < td > < table > 22

    < td > < table > 23

    < /tr >

    < b >

    < td > < table > 24

    < td > < table > 25

    < td > < table > 26

    < td > < table > 27

    < td > < table > 28

    < td > < table > 29

    < td > < table > 30

    < /tr >

    < b >

    < td > < table > 31

    < class td = "pad" colspan = "6" > < table >

    < /tr >

    < / tbody >

    < /table >

    < / div >

    < /li >

    < li > < /li >

    < /ul >

    < / div >

    <!-end #sidebar->

    < div style = "" clear: both; "> < / div >"

    < / div >

    <!-end #page->

    < div id = "footer" >

    < p > Copyright (c) University of Christ. All rights reserved. < /p >

    < / div >

    <!-end #footer->

    < / div >

    < div align = center > < / div > < / body >

    < / html >

    The LEAVE is a reserved word in MySQL. You can try to quote, but you are better to rename it.

Maybe you are looking for

  • Need help to play XP on Vista PC games

    Hi all, I have a few games for children PC for XP and now all of my computers running Vista.  Is it possible that I have Vista as XP games or not?  Thank you

  • Applications of ask a program to open.

    The strangest thing ever... plain old ".exe" applications require a program to open. (With the help of Vista) Probably the most fundamental and prominent example of this problem is when I tried to use Notepad. He went to the 'Open with' window, so I

  • Laptop HP dv7 Envy: drive hard short dst check failed

    Hello Today, I rebooted my computer because of the fingerprint does not.  When I turned it back I got the HP logo and it saying preparation repair, then it goes to a white screen.  I did a diagnostic test and got this: check DST short of hard drive:

  • Application does not work with the os5

    From MYAppClass 'net.rim.device.api.ui.component.PasswordEditField' not found.Start MYApp error: class 'net.rim.device.api.ui.component.PasswordEditField' not found. Question:-Application gives error on, click on the application icon test: = os 7 wor

  • Blackberry blackBerry 10 traffic

    When will they be available for Z19 Blackberry traffic?