Topshed9
Založený: 14.01.2008
Príspevky: 34
Zaslal: 2010-10-17 13:04
Návrat hore
Odpovedať s citátom
|
Hi,
Does anyone know how to get phpmyedit to continue to list consecutive records after the specific record is displayed based on the opts[inc}
using
$opts['inc'] = 20;
example Query for part number 2345
result 2345
But I want it to continue for the next 19 records
2346
2347
and so on to
2364
Please help an ole fella
Thanks
Roy...
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-10-20 14:01
Návrat hore
Odpovedať s citátom
|
Setting the ''select' option to N will produce a drop down box with qualifiers, then searching for >= 12345 will work to some degree.
http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.basic-options.html
|
Topshed9
Založený: 14.01.2008
Príspevky: 34
Zaslal: 2010-10-26 00:46
Návrat hore
Odpovedať s citátom
|
Hi Doug,
Thank you for the reply but for some reason using the N Appears to give almost random results 500+ records comes out as the next record
Field is smallint(5) Indexed ??
Thanks anyway
Roy...
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-10-26 00:51
Návrat hore
Odpovedať s citátom
|
Sounds like the field in question is not specified in the sort order. Perhaps if you posted all the code, a forum user would find a problem or offer a better solution.
|
Topshed9
Založený: 14.01.2008
Príspevky: 34
Zaslal: 2010-11-14 08:06
Návrat hore
Odpovedať s citátom
|
Thanks Doug,
I am trying to get the code to work on the 'br_no' Field. br_no is indexed but because many of the recorde never had a br_no it is not a unique index because of all the '0' duplicates
| Kód: |
<?php
include_once("../includes/admin_conn.php");
$opts['tb'] = 'br_stds';
$opts['key'] = 'ID';
$opts['key_type'] = 'int';
$opts['sort_field'] = array('ID');
$opts['inc'] = 30;
$opts['options'] = 'ACPVDF';
$opts['multiple'] = '4';
$opts['navigation'] = 'UDT';
$opts['display'] = array(
'form' => true,
'query' => true,
'sort' => true,
'time' => true,
'tabs' => true
);
$opts['js']['prefix'] = 'PME_js_';
$opts['dhtml']['prefix'] = 'PME_dhtml_';
$opts['cgi']['prefix']['operation'] = 'PME_op_';
$opts['cgi']['prefix']['sys'] = 'PME_sys_';
$opts['cgi']['prefix']['data'] = 'PME_data_';
$opts['cgi']['append']['PME_sys_fl'] = 1;
$opts['language'] = $_SERVER['HTTP_ACCEPT_LANGUAGE'] . '-UTF8';
$opts['buttons']['L']['up'] = array('<<','<','>','>>','goto','goto_combo');
$opts['buttons']['L']['down'] = array('<<','<','>','>>','goto','goto_combo');
$opts['css']['position']
$opts['fdd']['ID'] = array(
'name' => 'ID',
'select' => 'T',
'options' => 'AVCPDR', // auto increment
'maxlen' => 4,
'default' => '0',
'sort' => true
);
$opts['fdd']['lclas'] = array(
'name' => 'Lclas',
'select' => 'D',
'maxlen' => 3,
'sort' => true
);
$opts['fdd']['lclas2'] = array(
'name' => 'Lclas2',
'select' => 'D',
'maxlen' => 8,
'sort' => true
);
$opts['fdd']['Wheel'] = array(
'name' => 'Wheel',
'select' => 'T',
'maxlen' => 6,
'sort' => true
);
$opts['fdd']['br_no'] = array(
'name' => 'Br no',
'select' => 'N',
'maxlen' => 5,
'sort' => true
);
$opts['fdd']['loco_name'] = array(
'name' => 'Loco name',
'select' => 'D',
'maxlen' => 30,
'sort' => true
);
$opts['fdd']['builder'] = array(
'name' => 'Builder',
'select' => 'T',
'maxlen' => 12,
'sort' => true
);
$opts['fdd']['build_no'] = array(
'name' => 'Build no',
'select' => 'T',
'maxlen' => 8,
'sort' => true
);
$opts['fdd']['mm_build'] = array(
/* 'css' => array('postfix' => 'right-justify'),*/
'css' => array('postfix' => 'right-element'),
'name' => 'Month<br>build',
'select' => 'T',
'maxlen' => 3,
'sort' => true
);
$opts['fdd']['yy_build'] = array(
'name' => 'Yy build',
'select' => 'T',
'maxlen' => 4,
'sort' => true
);
$opts['fdd']['mm_wdn'] = array(
'name' => 'Mm wdn',
'select' => 'T',
'maxlen' => 3,
'sort' => true
);
$opts['fdd']['yy_wdn'] = array(
'name' => 'Yy wdn',
'select' => 'T',
'maxlen' => 4,
'sort' => true
);
require_once '../PHP/phpMyEdit.class.php';
new phpMyEdit($opts);
?> |
Also while I have your attention I have been trying to implement Postfix in the mm_build field with no visable success.
I used your example in your excelant phpMyEdit cheat sheet, with two of the css efforts thus
| Kód: |
.right-justify{
text-align: right;}
.right-element {
position: absolute;
right: 0;
width: 50%;
text-align: right; }
|
I am obviously missing something with the CSS ???
Regards Roy...
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-11-14 09:55
Návrat hore
Odpovedať s citátom
|
You would probably have to find a way to dynamically set $opts['sort_field'] based on the last selected action (using an if/else loop). Or click the column header after the initial search.
View the HTML output of the form and note the resulting style class will probably indicate you need something like this:
| Kód: |
.pme-cell-0-right-justify,
.pme-cell-1-right-justify{
text-align: right;
} |
Firefox web developer tool bar has a nice CSS feature, "View Style Information"
|
|
Odoslať novú tému
Odpovedať na tému
|
|