📄 save_sorting.php
字号:
<?php
include_once( "inc/auth.php" );
$position_str = $_REQUEST['str'];
$position_str = preg_replace( "/drag_/", "", $position_str );
$position_str = preg_replace( "/col_/", "", $position_str );
$position_str = preg_replace( "/,;/", ";", $position_str );
$position_str = substr( $position_str, 0, -1 );
$array_col = explode( ";", $position_str );
$i = 0;
for ( ; $i < count( $array_col ); ++$i )
{
$array_all = explode( ":", $array_col[$i] );
$blocklayout = $array_all[0];
$array_block = explode( ",", $array_all[1] );
$j = 0;
for ( ; $j < count( $array_block ); ++$j )
{
$blockid = $array_block[$j];
$blockorder = $j + 1;
$query = " UPDATE `file_sort` SET `FILE_SORTING` = '{$blockorder}' WHERE `SORT_ID`= '{$blockid}' ";
exequery( $connection, $query );
echo $query;
}
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -