class.table.php's People
Forkers
nord001 vladzimir yarlson crewn antixrist mkovrigovich patriot maasik specoff oiljin uqiauto zhrnyaclass.table.php's Issues
back to the past
Здравствуйте, досталось по наследству трудится над вашим давнем проектом, в котором много используется таблиц с данным классом. Могли бы вы немного прояснить не ясности в коде?
Не устанавливаются правила для ячеек
Сделал тестовую таблицу, по описанию на хабре:
include 'class.table.php';
//include '../config.php';
$tableInfo = array(
'args' => 'border="1" cellpadding="1"',
'cells' => array( //Правила для ячеек
'cell2' => array( //Массив правил для ячейки 'cell2'
'colspan' => 2, //Указать ТОЛЬКО точное значение
//Ряд HTML атрибутов для ячейки:
'id' => 'cellId',
'class' => 'cellClass',
'style' => 'color:#000;',
'args' => 'align=left width=80%'
)
)
);
$exmpl = Array
(
0 =>
Array(
0 => 'Cell_00',
'cell2' => 'Cell_011111111111111',
2 => 'Cell_02'
),
1 => Array
(
0 => 'Cell_10',
1 => 'Cell_11',
2 => Array
(
0 => Array
(
'Cell_120',
0 => array( 0 => 'Cell_121', 'tableInfo' => array('colspan' => "2")),
),
1 => Array
(
0 => 'Cell_121'
)
)
),
2 =>
Array(
0 => 'Cell_00',
1 => 'Cell_01',
2 => 'Cell_02',
3 => 'Cell_02'
)
);
echo Table::html($exmpl,$tableInfo);`
но класс не работает как описано,
не добавляются аргументы для ячейки cell2 (Cell_011111111111111)
и colspan для ячейки Cell_121
задумка полезная, но не хватает примера, где собирается действительно сложная таблица, как на рисунке на хабре ----> https://habrastorage.org/files/fe8/acd/755/fe8acd755723490a9dbbbe0ae0346fbd.png
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.